Documentation ¶
Index ¶
- func Factory(params *consensus.ConsensusParams) (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) PreStateCommit(_header *types.Header, _txn *state.Transition) error
- func (d *Dev) Prepare(header *types.Header) error
- func (d *Dev) ProcessHeaders(headers []*types.Header) error
- func (d *Dev) Seal(block *types.Block, ctx context.Context) (*types.Block, error)
- func (d *Dev) Start() error
- func (d *Dev) VerifyHeader(parent *types.Header, 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) PreStateCommit ¶ added in v0.3.0
PreStateCommit a hook to be called before finalizing state transition on inserting block
func (*Dev) ProcessHeaders ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.