consensus

package
v0.8.4-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2021 License: ISC Imports: 46 Imported by: 9

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

func NewFactory

func NewFactory() Factory

NewFactory creates a new Consensus factory

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL