private void SetupRulesEngine(ConcurrentChain chain) { var powConsensusRules = new PowConsensusRules(this.network, this.LoggerFactory.Object, this.dateTimeProvider.Object, chain, new NodeDeployments(this.network, chain), new ConsensusSettings(new NodeSettings(this.network)), new Checkpoints(), new Mock <CoinView>().Object, new Mock <ILookaheadBlockPuller>().Object); powConsensusRules.Register(new FullNodeBuilderConsensusExtension.PowConsensusRulesRegistration()); this.consensusLoop.SetupGet(x => x.ConsensusRules).Returns(powConsensusRules); }
private void SetupRulesEngine(ConcurrentChain chain) { var powConsensusRules = new PowConsensusRules(this.testNet, this.LoggerFactory.Object, this.dateTimeProvider.Object, chain, new NodeDeployments(this.testNet, chain), new ConsensusSettings(new NodeSettings(this.testNet)), new Checkpoints(), new Mock <ICoinView>().Object, new Mock <ILookaheadBlockPuller>().Object); powConsensusRules.Register(); this.consensusLoop.SetupGet(x => x.ConsensusRules).Returns(powConsensusRules); }