Documentation ¶
Index ¶
- func Factory(params *consensus.Params) (consensus.Consensus, error)
- type External
- func (d *External) Close() error
- func (d *External) GetBlockCreator(header *types.Header) (types.Address, error)
- func (d *External) GetSyncProgression() *progress.Progression
- func (d *External) Initialize() error
- func (d *External) Multicast(msg *proto.Message)
- func (d *External) PreCommitState(_header *types.Header, _txn *state.Transition) error
- func (d *External) ProcessHeaders(headers []*types.Header) error
- func (d *External) Start() error
- func (d *External) VerifyHeader(header *types.Header) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type External ¶
func (*External) GetBlockCreator ¶
func (*External) GetSyncProgression ¶
func (d *External) GetSyncProgression() *progress.Progression
func (*External) Initialize ¶
Initialize initializes the consensus
func (*External) PreCommitState ¶
PreCommitState a hook to be called before finalizing state transition on inserting block
Click to show internal directories.
Click to hide internal directories.