Documentation ¶
Index ¶
- Constants
- 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) IsSystemTransaction(height uint64, coinbase types.Address, tx *types.Transaction) bool
- 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(header *types.Header) error
Constants ¶
View Source
const (
WriteBlockSource = "dev"
)
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) IsSystemTransaction ¶ added in v1.2.0
func (*Dev) PreStateCommit ¶
PreStateCommit a hook to be called before finalizing state transition on inserting block
Click to show internal directories.
Click to hide internal directories.