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 ¶
func (d *Dummy) GetBridgeProvider() consensus.BridgeDataProvider
func (*Dummy) GetSyncProgression ¶
func (d *Dummy) GetSyncProgression() *progress.Progression
func (*Dummy) PreCommitState ¶
PreCommitState a hook to be called before finalizing state transition on inserting block
Click to show internal directories.
Click to hide internal directories.