Versions in this module Expand all Collapse all v0 v0.0.1 Jun 11, 2020 Changes in this version + type IAPI interface + APIs func(chain IChainReader) []rpc.API + type IChainReader interface + Config func() *params.ChainConfig + CurrentHeader func() *types.Header + FillForkID func(header *types.Header, statedb *state.StateDB) error + ForkUpdate func(block *types.Block, statedb *state.StateDB) error + GetBlock func(hash common.Hash, number uint64) *types.Block + GetHeader func(hash common.Hash, number uint64) *types.Header + GetHeaderByHash func(hash common.Hash) *types.Header + GetHeaderByNumber func(number uint64) *types.Header + HasBlock func(hash common.Hash, number uint64) bool + HasBlockAndState func(hash common.Hash, number uint64) bool + StateAt func(hash common.Hash) (*state.StateDB, error) + WriteBlockWithState func(block *types.Block, receipts []*types.Receipt, state *state.StateDB) (bool, error) + type IConsensus interface + type IEngine interface + Author func(header *types.Header) (common.Name, error) + CalcBHIIrreversible func() uint64 + Engine func() IEngine + Finalize func(chain IChainReader, header *types.Header, txs []*types.Transaction, ...) (*types.Block, error) + GetActivedCandidate func(state *state.StateDB, epoch uint64, index uint64) (name string, stake *big.Int, totalVote *big.Int, counter uint64, ...) + GetActivedCandidateSize func(state *state.StateDB, epoch uint64) (size uint64, err error) + GetCandidateStake func(state *state.StateDB, epoch uint64, candidate string) (stake *big.Int, err error) + GetDelegatedByTime func(state *state.StateDB, candidate string, timestamp uint64) (stake *big.Int, err error) + GetEpoch func(state *state.StateDB, t uint64, curEpoch uint64) (epoch uint64, time uint64, err error) + GetVoterStake func(state *state.StateDB, epoch uint64, voter string, candidate string) (stake *big.Int, err error) + Prepare func(chain IChainReader, header *types.Header, txs []*types.Transaction, ...) error + ProcessAction func(fid uint64, number uint64, chainCfg *params.ChainConfig, state *state.StateDB, ...) ([]*types.InternalAction, error) + Seal func(chain IChainReader, block *types.Block, stop <-chan struct{}) (*types.Block, error) + type ITxPool interface + Pending func() (map[common.Name][]*types.Transaction, error) + type ITxProcessor interface + ApplyTransaction func(coinbase *common.Name, gp *common.GasPool, statedb *state.StateDB, ...) (*types.Receipt, uint64, error) + type IValidator interface + CalcDifficulty func(chain IChainReader, time uint64, parent *types.Header) *big.Int + VerifySeal func(chain IChainReader, header *types.Header) error