Versions in this module Expand all Collapse all v0 v0.1.1 Oct 7, 2021 v0.1.0 Sep 30, 2021 Changes in this version + var BlockGasFee uint64 = 1_000_000 + var MaxBaseFee = big.NewInt(params.ApricotPhase3MaxBaseFee) + var MinBaseFee = big.NewInt(params.ApricotPhase3MinBaseFee) + var TargetGas uint64 = 10_000_000 + func CalcBaseFee(config *params.ChainConfig, parent *types.Header, timestamp uint64) ([]byte, *big.Int, error) + type ConsensusCallbacks struct + OnAPIs OnAPIsCallbackType + OnExtraStateChange OnExtraStateChangeType + OnFinalize OnFinalizeCallbackType + OnFinalizeAndAssemble OnFinalizeAndAssembleCallbackType + type DummyEngine struct + func NewDummyEngine(cb *ConsensusCallbacks) *DummyEngine + func NewFaker() *DummyEngine + func (self *DummyEngine) APIs(chain consensus.ChainHeaderReader) (res []rpc.API) + 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) ExtraStateChange(block *types.Block, statedb *state.StateDB) error + func (self *DummyEngine) Finalize(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB, ...) error + func (self *DummyEngine) FinalizeAndAssemble(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB, ...) (*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) VerifySeal(chain consensus.ChainHeaderReader, header *types.Header) error + func (self *DummyEngine) VerifyUncles(chain consensus.ChainReader, block *types.Block) error + type OnAPIsCallbackType = func(consensus.ChainHeaderReader) []rpc.API + type OnExtraStateChangeType = func(block *types.Block, statedb *state.StateDB) error + type OnFinalizeAndAssembleCallbackType = func(header *types.Header, state *state.StateDB, txs []*types.Transaction) ([]byte, error) + type OnFinalizeCallbackType = func(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB, ...) error