Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestGhostDAGSorter ¶
func NewTestGhostDAGSorter(slice []*externalapi.DomainHash, tc testapi.TestConsensus, t testing.TB) sort.Interface
NewTestGhostDAGSorter returns a sort.Interface over the slice, so you can sort it via GhostDAG ordering
Types ¶
type Factory ¶
type Factory interface { NewConsensus(dagParams *dagconfig.Params, db infrastructuredatabase.Database) (externalapi.Consensus, error) NewTestConsensus(dagParams *dagconfig.Params, testName string) ( tc testapi.TestConsensus, teardown func(keepDataDir bool), err error) NewTestConsensusWithDataDir(dagParams *dagconfig.Params, dataDir string) ( tc testapi.TestConsensus, teardown func(keepDataDir bool), err error) }
Factory instantiates new Consensuses
Source Files ¶
Click to show internal directories.
Click to hide internal directories.