consensus

package
v0.9.2-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: ISC Imports: 54 Imported by: 1

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

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

func NewFactory

func NewFactory() Factory

NewFactory creates a new Consensus factory

type GHOSTDAGManagerConstructor

GHOSTDAGManagerConstructor is the function signature for a constructor of a type implementing model.GHOSTDAGManager

type PastMedianTimeManagerConstructor added in v0.8.10

PastMedianTimeManagerConstructor is the function signature for a constructor of a type implementing model.PastMedianTimeManager

Jump to

Keyboard shortcuts

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