mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 13:28:01 -05:00
Remove unused variables, functions and more (#15264)
This commit is contained in:
@@ -126,12 +126,6 @@ var PostElectraDepositCount = uint64(32)
|
||||
// PregenesisExecCreds is the number of withdrawal credentials of genesis validators which use an execution address.
|
||||
var PregenesisExecCreds = uint64(8)
|
||||
|
||||
// NumOfExecEngineTxs is the number of transaction sent to the execution engine.
|
||||
var NumOfExecEngineTxs = uint64(200)
|
||||
|
||||
// ExpectedExecEngineTxsThreshold is the portion of execution engine transactions we expect to find in blocks.
|
||||
var ExpectedExecEngineTxsThreshold = 0.5
|
||||
|
||||
// Base port values.
|
||||
const (
|
||||
portSpan = 50
|
||||
|
||||
@@ -33,15 +33,6 @@ type electraBlockGenerator struct {
|
||||
payload *enginev1.ExecutionPayloadDeneb
|
||||
}
|
||||
|
||||
func WithElectraProposerSigning(idx primitives.ValidatorIndex, sk bls.SecretKey, valRoot []byte) ElectraBlockGeneratorOption {
|
||||
return func(g *electraBlockGenerator) {
|
||||
g.sign = true
|
||||
g.proposer = idx
|
||||
g.sk = sk
|
||||
g.valRoot = valRoot
|
||||
}
|
||||
}
|
||||
|
||||
func WithElectraPayload(p *enginev1.ExecutionPayloadDeneb) ElectraBlockGeneratorOption {
|
||||
return func(g *electraBlockGenerator) {
|
||||
g.payload = p
|
||||
|
||||
@@ -71,19 +71,6 @@ func FillRootsNaturalOptCapella(state *ethpb.BeaconStateCapella) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// FillRootsNaturalOptDeneb is meant to be used as an option when calling NewBeaconStateDeneb.
|
||||
// It fills state and block roots with hex representations of natural numbers starting with 0.
|
||||
// Example: 16 becomes 0x00...0f.
|
||||
func FillRootsNaturalOptDeneb(state *ethpb.BeaconStateDeneb) error {
|
||||
roots, err := PrepareRoots(int(params.BeaconConfig().SlotsPerHistoricalRoot))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
state.StateRoots = roots
|
||||
state.BlockRoots = roots
|
||||
return nil
|
||||
}
|
||||
|
||||
type NewBeaconStateOption func(state *ethpb.BeaconState) error
|
||||
|
||||
// NewBeaconState creates a beacon state with minimum marshalable fields.
|
||||
|
||||
Reference in New Issue
Block a user