Versions in this module Expand all Collapse all v0 v0.8.6 May 28, 2024 Changes in this version + func SealHash(header *types.Header) (hash common.Hash) + func SseRLP(header *types.Header) []byte + 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 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 Sse struct + func New(config *params.SseConfig, db ethdb.Database) *Sse + func (c *Sse) APIs(chain consensus.ChainReader) []rpc.API + func (c *Sse) Author(header *types.Header) (common.Address, error) + func (c *Sse) Authorize(signer common.Address, signFn SignerFn) + func (c *Sse) CalcDifficulty(chain consensus.ChainReader, time uint64, parent *types.Header) *big.Int + func (c *Sse) CalcDifficultyEngine(nonce uint64, otprn []byte, coinbase common.Address, hash common.Hash) *big.Int + func (c *Sse) Close() error + func (c *Sse) Finalize(chain consensus.ChainReader, header *types.Header, state *state.StateDB, ...) (*types.Block, error) + func (c *Sse) FinalizeAndAssemble(chain consensus.ChainReader, header *types.Header, state *state.StateDB, ...) (*types.Block, error) + func (c *Sse) Name() string + func (c *Sse) Otprn() *types.Otprn + func (c *Sse) Prepare(chain consensus.ChainReader, header *types.Header) error + func (c *Sse) Seal(chain consensus.ChainReader, block *types.Block, results chan<- *types.Block, ...) error + func (c *Sse) SealHash(header *types.Header) common.Hash + func (c *Sse) SetFnFee(otprn *types.Otprn) + func (c *Sse) SetOtprn(otprn *types.Otprn) + func (c *Sse) VerifyHeader(chain consensus.ChainReader, header *types.Header, seal bool) error + func (c *Sse) VerifyHeaders(chain consensus.ChainReader, headers []*types.Header, seals []bool) (chan<- struct{}, <-chan error) + func (c *Sse) VerifySeal(chain consensus.ChainReader, header *types.Header) error + type Tally struct + Authorize bool + Votes int + type Vote struct + Address common.Address + Authorize bool + Block uint64 + Signer common.Address