Documentation ¶
Index ¶
- func Factory(params *consensus.Params) (consensus.Consensus, error)
- type Dev
- func (d *Dev) Close() error
- func (d *Dev) GetBlockCreator(header *types.Header) (types.Address, error)
- func (d *Dev) GetSyncProgression() *progress.Progression
- func (d *Dev) Initialize() error
- func (d *Dev) PreCommitState(_header *types.Header, _txn *state.Transition) error
- func (d *Dev) ProcessHeaders(headers []*types.Header) error
- func (d *Dev) Start() error
- func (d *Dev) VerifyHeader(header *types.Header) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dev ¶
type Dev struct {
// contains filtered or unexported fields
}
Dev consensus protocol seals any new transaction immediately
func (*Dev) GetBlockCreator ¶
func (*Dev) GetSyncProgression ¶
func (d *Dev) GetSyncProgression() *progress.Progression
func (*Dev) PreCommitState ¶
PreCommitState a hook to be called before finalizing state transition on inserting block
Click to show internal directories.
Click to hide internal directories.