blockvalidator

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: ISC Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDevFeeOutput added in v1.0.3

func IsDevFeeOutput(reward uint64, output *externalapi.DomainTransactionOutput) bool

func New

func New(powMax *big.Int,
	skipPoW bool,
	genesisHash *externalapi.DomainHash,
	enableNonNativeSubnetworks bool,
	maxBlockMass uint64,
	mergeSetSizeLimit uint64,
	maxBlockParents externalapi.KType,
	timestampDeviationTolerance int,
	targetTimePerBlock time.Duration,
	POWScores []uint64,
	maxBlockLevel int,

	databaseContext model.DBReader,

	difficultyManager model.DifficultyManager,
	pastMedianTimeManager model.PastMedianTimeManager,
	transactionValidator model.TransactionValidator,
	ghostdagManagers []model.GHOSTDAGManager,
	dagTopologyManagers []model.DAGTopologyManager,
	dagTraversalManager model.DAGTraversalManager,
	coinbaseManager model.CoinbaseManager,
	mergeDepthManager model.MergeDepthManager,
	reachabilityManager model.ReachabilityManager,
	finalityManager model.FinalityManager,
	blockParentBuilder model.BlockParentBuilder,
	pruningManager model.PruningManager,
	parentsManager model.ParentsManager,

	pruningStore model.PruningStore,
	blockStore model.BlockStore,
	ghostdagDataStores []model.GHOSTDAGDataStore,
	blockHeaderStore model.BlockHeaderStore,
	blockStatusStore model.BlockStatusStore,
	reachabilityStore model.ReachabilityDataStore,
	consensusStateStore model.ConsensusStateStore,
	daaBlocksStore model.DAABlocksStore,

	txMassCalculator *txmass.Calculator,
) model.BlockValidator

New instantiates a new BlockValidator

Types

This section is empty.

Jump to

Keyboard shortcuts

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