Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckBlockCertificationRequest ¶
func CheckBlockCertificationRequest(req CertRequestVerifier, luc *types.UnicityCertificate) error
Types ¶
type CertReqReason ¶
type CertReqReason uint8
const ( Quorum CertReqReason = iota QuorumNotPossible )
type CertRequestVerifier ¶
type IRChangeRequest ¶
type IRChangeRequest struct { Partition types.SystemID Shard types.ShardID Reason CertReqReason Requests []*certification.BlockCertificationRequest Technical certification.TechnicalRecord }
type Option ¶
type Option func(c *Optional)
func WithStorage ¶
func WithStorage(db keyvaluedb.KeyValueDB) Option
type Optional ¶
type Optional struct {
Storage keyvaluedb.KeyValueDB
}
Optional are common optional parameters for consensus managers
type Parameters ¶
type Parameters struct { BlockRate time.Duration // also known as T3 LocalTimeout time.Duration ConsensusThreshold uint32 HashAlgorithm gocrypto.Hash }
Parameters are basic consensus parameters that need to be the same in all root validators. Extracted from root genesis where all validators in the root cluster must have signed them to signal agreement
func NewConsensusParams ¶
func NewConsensusParams(genesisRoot *genesis.GenesisRootRecord) *Parameters
NewConsensusParams extract common consensus parameters from genesis
Click to show internal directories.
Click to hide internal directories.