Versions in this module Expand all Collapse all v0 v0.11.7 Jun 29, 2023 Changes in this version + var ApricotPhase3BlockGasFee uint64 = 1_000_000 + var ApricotPhase3MaxBaseFee = big.NewInt(params.ApricotPhase3MaxBaseFee) + var ApricotPhase3MinBaseFee = big.NewInt(params.ApricotPhase3MinBaseFee) + var ApricotPhase4BaseFeeChangeDenominator = new(big.Int).SetUint64(params.ApricotPhase4BaseFeeChangeDenominator) + var ApricotPhase4BlockGasCostStep = big.NewInt(50_000) + var ApricotPhase4MaxBaseFee = big.NewInt(params.ApricotPhase4MaxBaseFee) + var ApricotPhase4MaxBlockGasCost = big.NewInt(1_000_000) + var ApricotPhase4MinBaseFee = big.NewInt(params.ApricotPhase4MinBaseFee) + var ApricotPhase4MinBlockGasCost = new(big.Int).Set(common.Big0) + var ApricotPhase4TargetBlockRate uint64 = 2 + var ApricotPhase5BaseFeeChangeDenominator = new(big.Int).SetUint64(params.ApricotPhase5BaseFeeChangeDenominator) + var ApricotPhase5BlockGasCostStep = big.NewInt(200_000) + func CalcBaseFee(config *params.ChainConfig, parent *types.Header, timestamp uint64) ([]byte, *big.Int, error) + func EstimateNextBaseFee(config *params.ChainConfig, parent *types.Header, timestamp uint64) ([]byte, *big.Int, error) + func MinRequiredTip(config *params.ChainConfig, header *types.Header) (*big.Int, error) + type ConsensusCallbacks struct + OnExtraStateChange OnExtraStateChangeType + OnFinalizeAndAssemble OnFinalizeAndAssembleCallbackType + type DummyEngine struct + func NewComplexETHFaker(cb *ConsensusCallbacks) *DummyEngine + func NewDummyEngine(cb *ConsensusCallbacks) *DummyEngine + func NewETHFaker() *DummyEngine + func NewFaker() *DummyEngine + func NewFullFaker() *DummyEngine + func (self *DummyEngine) Author(header *types.Header) (common.Address, error) + func (self *DummyEngine) CalcDifficulty(chain consensus.ChainHeaderReader, time uint64, parent *types.Header) *big.Int + func (self *DummyEngine) Close() error + func (self *DummyEngine) Finalize(chain consensus.ChainHeaderReader, block *types.Block, parent *types.Header, ...) error + func (self *DummyEngine) FinalizeAndAssemble(chain consensus.ChainHeaderReader, header *types.Header, parent *types.Header, ...) (*types.Block, error) + func (self *DummyEngine) Prepare(chain consensus.ChainHeaderReader, header *types.Header) error + func (self *DummyEngine) VerifyHeader(chain consensus.ChainHeaderReader, header *types.Header) error + func (self *DummyEngine) VerifyUncles(chain consensus.ChainReader, block *types.Block) error + type Mode uint + const ModeSkipBlockFee + const ModeSkipHeader + type OnAPIsCallbackType = func(consensus.ChainHeaderReader) []rpc.API + type OnExtraStateChangeType = func(block *types.Block, statedb *state.StateDB) (blockFeeContribution *big.Int, extDataGasUsed *big.Int, err error) + type OnFinalizeAndAssembleCallbackType = func(header *types.Header, state *state.StateDB, txs []*types.Transaction) (extraData []byte, blockFeeContribution *big.Int, extDataGasUsed *big.Int, ...) v0.11.7-rc.0 Jun 29, 2023