Documentation ¶
Index ¶
- func Sync(gc []byte, db database.Database, cfg *infraconfig.Config)
- func VerfiyNonce(i int) (string, bool)
- func VerifyMerkleRoot() (string, bool)
- func VerifyMessage() (string, bool)
- func VerifyPreviousHash() (string, bool)
- func VerifyTimestamp(i int) (string, bool)
- func VerifyTransaction() (string, bool)
- type Config
- type Factory
- type PastMedianTimeManagerConstructor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VerfiyNonce ¶
func VerifyMerkleRoot ¶
func VerifyMessage ¶
func VerifyPreviousHash ¶
func VerifyTimestamp ¶
func VerifyTransaction ¶
Types ¶
type Config ¶
type Config struct { dagconfig.Params // IsArchival tells the consensus if it should not prune old blocks IsArchival bool // EnableSanityCheckPruningUTXOSet checks the full pruning point utxo set against the commitment at every pruning movement EnableSanityCheckPruningUTXOSet bool SkipAddingGenesis bool }
type Factory ¶
type Factory interface { NewConsensus(config *Config, db database.Database, consensusEventsChan chan external.ConsensusEvent) ( external.Consensus, error) }
func NewFactory ¶
func NewFactory() Factory
type PastMedianTimeManagerConstructor ¶
type PastMedianTimeManagerConstructor func(int, model.DBReader, model.BlockHeaderStore, *external.DomainHash) model.PastMedianTimeManager
Source Files ¶
Click to show internal directories.
Click to hide internal directories.