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