Beispiel #1
0
        public BlockPullerTestsHelper()
        {
            this.loggerFactory = ExtendedLoggerFactory.Create();

            this.CallbacksCalled = new Dictionary <uint256, Block>();
            this.ChainState      = new ChainState()
            {
                ConsensusTip = ChainedHeadersHelper.CreateGenesisChainedHeader()
            };

            this.Puller = new ExtendedBlockPuller(this.ChainState, new NodeSettings(new StraxMain()), new DateTimeProvider(), new NodeStats(new DateTimeProvider(), this.loggerFactory), this.loggerFactory);
        }
Beispiel #2
0
 public BlockPullerTests()
 {
     this.helper = new BlockPullerTestsHelper();
     this.puller = this.helper.Puller;
 }