Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DifficultyManagerConstructor ¶ added in v0.8.10
type DifficultyManagerConstructor func(model.DBReader, model.GHOSTDAGManager, model.GHOSTDAGDataStore, model.BlockHeaderStore, model.DAGTopologyManager, model.DAGTraversalManager, *big.Int, int, bool, time.Duration, *externalapi.DomainHash) model.DifficultyManager
DifficultyManagerConstructor is the function signature for a constructor of a type implementing model.DifficultyManager
type Factory ¶
type Factory interface { NewConsensus(dagParams *dagconfig.Params, db infrastructuredatabase.Database, isArchivalNode bool) ( externalapi.Consensus, error) NewTestConsensus(dagParams *dagconfig.Params, isArchivalNode bool, testName string) ( tc testapi.TestConsensus, teardown func(keepDataDir bool), err error) SetTestDataDir(dataDir string) SetTestGHOSTDAGManager(ghostdagConstructor GHOSTDAGManagerConstructor) SetTestLevelDBCacheSize(cacheSizeMiB int) SetTestPreAllocateCache(preallocateCaches bool) SetTestPastMedianTimeManager(medianTimeConstructor PastMedianTimeManagerConstructor) SetTestDifficultyManager(difficultyConstructor DifficultyManagerConstructor) }
Factory instantiates new Consensuses
type GHOSTDAGManagerConstructor ¶
type GHOSTDAGManagerConstructor func(model.DBReader, model.DAGTopologyManager, model.GHOSTDAGDataStore, model.BlockHeaderStore, model.KType) model.GHOSTDAGManager
GHOSTDAGManagerConstructor is the function signature for a constructor of a type implementing model.GHOSTDAGManager
type PastMedianTimeManagerConstructor ¶ added in v0.8.10
type PastMedianTimeManagerConstructor func(int, model.DBReader, model.DAGTraversalManager, model.BlockHeaderStore, model.GHOSTDAGDataStore) model.PastMedianTimeManager
PastMedianTimeManagerConstructor is the function signature for a constructor of a type implementing model.PastMedianTimeManager
Source Files
¶
Click to show internal directories.
Click to hide internal directories.