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) GetBridgeProvider() consensus.BridgeDataProvider
- 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) GetBridgeProvider ¶ added in v0.8.0
func (d *Dev) GetBridgeProvider() consensus.BridgeDataProvider
func (*Dev) GetSyncProgression ¶
func (d *Dev) GetSyncProgression() *progress.Progression
func (*Dev) PreCommitState ¶ added in v0.6.0
PreCommitState 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.