package
0.0.0-20191121031935-d5477c9b5316
Repository: https://github.com/datxchain-protocol/datx.git
Documentation: pkg.go.dev
# Functions
New creates a Clique proof-of-authority consensus engine with the initial signers set to the ones provided by the user.
# Variables
ErrInvalidTimestamp is returned if the timestamp of a block is lower than the previous block's timestamp + the minimum block period.
# Structs
API is a user facing RPC API to allow controlling the signer and voting mechanisms of the proof-of-authority scheme.
Clique is the proof-of-authority consensus engine proposed to support the Ethereum testnet following the Ropsten attacks.
Snapshot is the state of the authorization voting at a given point in time.
Tally is a simple vote tally to keep the current score of votes.
Vote represents a single vote that an authorized signer made to modify the list of authorizations.
# Type aliases
SignerFn is a signer callback function to request a hash to be signed by a backing account.