Versions in this module Expand all Collapse all v0 v0.8.2 Mar 31, 2023 v0.8.1 Sep 13, 2022 Changes in this version + func DbftRLP(header *types.Header) []byte + func SealHash(header *types.Header) (hash common.Hash) + type API struct + func (api *API) Discard(address common.Address) + func (api *API) GetSigner(rlpOrBlockNr *blockNumberOrHashOrRLP) (common.Address, error) + func (api *API) GetSigners(number *rpc.BlockNumber) ([]common.Address, error) + func (api *API) GetSignersAtHash(hash common.Hash) ([]common.Address, error) + func (api *API) GetSnapshot(number *rpc.BlockNumber) (*Snapshot, error) + func (api *API) GetSnapshotAtHash(hash common.Hash) (*Snapshot, error) + func (api *API) Proposals() map[common.Address]bool + func (api *API) Propose(address common.Address, auth bool) + func (api *API) Status() (*status, error) + type Dbft struct + func New(config *params.DbftConfig, db ethdb.Database) *Dbft + func (c *Dbft) APIs(chain consensus.ChainReader) []rpc.API + func (c *Dbft) Author(header *types.Header) (common.Address, error) + func (c *Dbft) Authorize(signer common.Address, signFn SignerFn) + func (c *Dbft) CalcDifficulty(chain consensus.ChainReader, time uint64, parent *types.Header) *big.Int + func (c *Dbft) CalcDifficultyDeb(nonce uint64, otprn []byte, coinbase common.Address, hash common.Hash) *big.Int + func (c *Dbft) Close() error + func (c *Dbft) Finalize(chain consensus.ChainReader, header *types.Header, state *state.StateDB, ...) (*types.Block, error) + func (c *Dbft) FinalizeAndAssemble(chain consensus.ChainReader, header *types.Header, state *state.StateDB, ...) (*types.Block, error) + func (c *Dbft) Name() string + func (c *Dbft) Otprn() *types.Otprn + func (c *Dbft) Prepare(chain consensus.ChainReader, header *types.Header) error + func (c *Dbft) Seal(chain consensus.ChainReader, block *types.Block, results chan<- *types.Block, ...) error + func (c *Dbft) SealHash(header *types.Header) common.Hash + func (c *Dbft) SetOtprn(otprn *types.Otprn) + func (c *Dbft) VerifyHeader(chain consensus.ChainReader, header *types.Header, seal bool) error + func (c *Dbft) VerifyHeaders(chain consensus.ChainReader, headers []*types.Header, seals []bool) (chan<- struct{}, <-chan error) + func (c *Dbft) VerifySeal(chain consensus.ChainReader, header *types.Header) error + type SignerFn func(signer accounts.Account, mimeType string, message []byte) ([]byte, error) + type Snapshot struct + Hash common.Hash + Number uint64 + Recents map[uint64]common.Address + Signers map[common.Address]struct{} + Tally map[common.Address]Tally + Votes []*Vote + type Tally struct + Authorize bool + Votes int + type Vote struct + Address common.Address + Authorize bool + Block uint64 + Signer common.Address