Remove unused variables, functions and more (#15264)

This commit is contained in:
terence
2025-05-12 06:25:26 -07:00
committed by GitHub
parent 0251fd78e9
commit 93a5fdd8f3
13 changed files with 8 additions and 568 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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.