Documentation ¶
Index ¶
- type Mock
- func (m *Mock) APIs(chain consensus.ChainReader) []rpc.API
- func (m *Mock) Author(header *types.Header) (common.Address, error)
- func (m *Mock) CalcDifficulty(chain consensus.ChainReader, time uint64, parent *types.Header) *big.Int
- func (m *Mock) Finalize(chain consensus.ChainReader, header *types.Header, state *state.StateDB, ...) (*types.Block, error)
- func (m *Mock) HandleBftMsg(chain consensus.ChainReader, msg types.ConsensusMsg)
- func (m *Mock) Prepare(chain consensus.ChainReader, header *types.Header) error
- func (m *Mock) Seal(chain consensus.ChainReader, block *types.Block, stop <-chan struct{}) (*types.Block, error)
- func (m *Mock) VerifyCommitMsg(block *types.Block) error
- func (m *Mock) VerifyHeader(chain consensus.ChainReader, header *types.Header, seal bool) error
- func (m *Mock) VerifyHeaders(chain consensus.ChainReader, headers []*types.Header, seals []bool) (chan<- struct{}, <-chan error)
- func (m *Mock) VerifySeal(chain consensus.ChainReader, header *types.Header) error
- func (m *Mock) VerifyWitnesses(header *types.Header, db *state.StateDB, parent *types.Header) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mock ¶
type Mock struct {
// contains filtered or unexported fields
}
func NewMockFail ¶
func (*Mock) APIs ¶
func (m *Mock) APIs(chain consensus.ChainReader) []rpc.API
APIs returns the RPC APIs this consensus engine provides.
func (*Mock) CalcDifficulty ¶
func (*Mock) HandleBftMsg ¶
func (m *Mock) HandleBftMsg(chain consensus.ChainReader, msg types.ConsensusMsg)
func (*Mock) VerifyHeader ¶
func (*Mock) VerifyHeaders ¶
func (*Mock) VerifySeal ¶
Click to show internal directories.
Click to hide internal directories.