/// <summary> /// Initialize instance of the object. /// </summary> /// <param name="invalidBlockHashStore">Store of block header hashes that are to be considered invalid.</param> public ChainState(IInvalidBlockHashStore invalidBlockHashStore) { this.invalidBlockHashStore = invalidBlockHashStore; }
public TestContractRulesEngine(Network network, ILoggerFactory loggerFactory, IDateTimeProvider dateTimeProvider, ConcurrentChain chain, NodeDeployments nodeDeployments, ConsensusSettings consensusSettings, ICheckpoints checkpoints, ICoinView utxoSet, IChainState chainState, IInvalidBlockHashStore invalidBlockHashStore, INodeStats nodeStats) : base(network, loggerFactory, dateTimeProvider, chain, nodeDeployments, consensusSettings, checkpoints, utxoSet, chainState, invalidBlockHashStore, nodeStats) { }
public TestPosConsensusRules(Network network, ILoggerFactory loggerFactory, IDateTimeProvider dateTimeProvider, ChainIndexer chainIndexer, NodeDeployments nodeDeployments, ConsensusSettings consensusSettings, ICheckpoints checkpoints, ICoinView uxtoSet, IStakeChain stakeChain, IStakeValidator stakeValidator, IChainState chainState, IInvalidBlockHashStore invalidBlockHashStore, INodeStats nodeStats, IRewindDataIndexCache rewindDataIndexCache, IAsyncProvider asyncProvider, IRewardValidator rewardValidator) : base(network, loggerFactory, dateTimeProvider, chainIndexer, nodeDeployments, consensusSettings, checkpoints, uxtoSet, stakeChain, stakeValidator, chainState, invalidBlockHashStore, nodeStats, rewindDataIndexCache, asyncProvider, rewardValidator) { this.ruleRegistrationHelper = new RuleRegistrationHelper(); }
public TestConsensusRules(Network network, ILoggerFactory loggerFactory, IDateTimeProvider dateTimeProvider, ChainIndexer chainIndexer, NodeDeployments nodeDeployments, ConsensusSettings consensusSettings, ICheckpoints checkpoints, IChainState chainState, IInvalidBlockHashStore invalidBlockHashStore, INodeStats nodeStats) : base(network, loggerFactory, dateTimeProvider, chainIndexer, nodeDeployments, consensusSettings, checkpoints, chainState, invalidBlockHashStore, nodeStats) { this.ruleRegistrationHelper = new RuleRegistrationHelper(); }
/// <summary> /// Initialize instance of the object. /// </summary> /// <param name="fullNode">The full node using this feature.</param> /// <param name="invalidBlockHashStore">Store of block header hashes that are to be considered invalid.</param> public ChainState(IFullNode fullNode, IInvalidBlockHashStore invalidBlockHashStore) { this.fullNode = fullNode; this.dateTimeProvider = this.fullNode.NodeService <IDateTimeProvider>(true); this.invalidBlockHashStore = invalidBlockHashStore; }
public TestPosConsensusRules(Network network, ILoggerFactory loggerFactory, IDateTimeProvider dateTimeProvider, ConcurrentChain chain, NodeDeployments nodeDeployments, ConsensusSettings consensusSettings, ICheckpoints checkpoints, ICoinView uxtoSet, IStakeChain stakeChain, IStakeValidator stakeValidator, IChainState chainState, IInvalidBlockHashStore invalidBlockHashStore) : base(network, loggerFactory, dateTimeProvider, chain, nodeDeployments, consensusSettings, checkpoints, uxtoSet, stakeChain, stakeValidator, chainState, invalidBlockHashStore) { this.ruleRegistrationHelper = new RuleRegistrationHelper(); }