Documentation ¶
Index ¶
- Constants
- Variables
- type Config
- type MeerEngine
- func (me *MeerEngine) APIs(chain consensus.ChainHeaderReader) []rpc.API
- func (me *MeerEngine) Author(header *types.Header) (common.Address, error)
- func (me *MeerEngine) CalcDifficulty(chain consensus.ChainHeaderReader, time uint64, parent *types.Header) *big.Int
- func (me *MeerEngine) Close() error
- func (me *MeerEngine) Finalize(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB, ...)
- func (me *MeerEngine) FinalizeAndAssemble(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB, ...) (*types.Block, error)
- func (me *MeerEngine) Hashrate() float64
- func (me *MeerEngine) OnExtraStateChange(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB)
- func (me *MeerEngine) Prepare(chain consensus.ChainHeaderReader, header *types.Header) error
- func (me *MeerEngine) Seal(chain consensus.ChainHeaderReader, block *types.Block, ...) error
- func (me *MeerEngine) SealHash(header *types.Header) (hash common.Hash)
- func (me *MeerEngine) SetThreads(threads int)
- func (me *MeerEngine) Threads() int
- func (me *MeerEngine) VerifyHeader(chain consensus.ChainHeaderReader, header *types.Header, seal bool) error
- func (me *MeerEngine) VerifyHeaders(chain consensus.ChainHeaderReader, headers []*types.Header, seals []bool) (chan<- struct{}, <-chan error)
- func (me *MeerEngine) VerifyUncles(chain consensus.ChainReader, block *types.Block) error
Constants ¶
View Source
const (
MaximumExtraDataSize uint64 = 512 // Maximum size extra data may be after Genesis.
)
Variables ¶
View Source
var ( FrontierBlockReward = big.NewInt(5e+18) // Block reward in wei for successfully mining a block ByzantiumBlockReward = big.NewInt(3e+18) // Block reward in wei for successfully mining a block upward from Byzantium ConstantinopleBlockReward = big.NewInt(2e+18) // Block reward in wei for successfully mining a block upward from Constantinople )
Functions ¶
This section is empty.
Types ¶
type MeerEngine ¶
type MeerEngine struct {
// contains filtered or unexported fields
}
func (*MeerEngine) APIs ¶
func (me *MeerEngine) APIs(chain consensus.ChainHeaderReader) []rpc.API
func (*MeerEngine) CalcDifficulty ¶
func (me *MeerEngine) CalcDifficulty(chain consensus.ChainHeaderReader, time uint64, parent *types.Header) *big.Int
func (*MeerEngine) Close ¶
func (me *MeerEngine) Close() error
func (*MeerEngine) Finalize ¶
func (me *MeerEngine) Finalize(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB, txs []*types.Transaction, uncles []*types.Header, withdrawals []*types.Withdrawal)
func (*MeerEngine) FinalizeAndAssemble ¶
func (me *MeerEngine) FinalizeAndAssemble(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB, txs []*types.Transaction, uncles []*types.Header, receipts []*types.Receipt, withdrawals []*types.Withdrawal) (*types.Block, error)
func (*MeerEngine) Hashrate ¶
func (me *MeerEngine) Hashrate() float64
func (*MeerEngine) OnExtraStateChange ¶
func (me *MeerEngine) OnExtraStateChange(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB)
func (*MeerEngine) Prepare ¶
func (me *MeerEngine) Prepare(chain consensus.ChainHeaderReader, header *types.Header) error
func (*MeerEngine) Seal ¶
func (me *MeerEngine) Seal(chain consensus.ChainHeaderReader, block *types.Block, results chan<- *types.Block, stop <-chan struct{}) error
func (*MeerEngine) SealHash ¶
func (me *MeerEngine) SealHash(header *types.Header) (hash common.Hash)
func (*MeerEngine) SetThreads ¶
func (me *MeerEngine) SetThreads(threads int)
func (*MeerEngine) Threads ¶
func (me *MeerEngine) Threads() int
func (*MeerEngine) VerifyHeader ¶
func (me *MeerEngine) VerifyHeader(chain consensus.ChainHeaderReader, header *types.Header, seal bool) error
func (*MeerEngine) VerifyHeaders ¶
func (me *MeerEngine) VerifyHeaders(chain consensus.ChainHeaderReader, headers []*types.Header, seals []bool) (chan<- struct{}, <-chan error)
func (*MeerEngine) VerifyUncles ¶
func (me *MeerEngine) VerifyUncles(chain consensus.ChainReader, block *types.Block) error
Click to show internal directories.
Click to hide internal directories.