コード例 #1
0
        public async Task CanCall()
        {
            string            dir        = AssureEmptyDir("Stratis.Bitcoin.Tests/TestData/GetRawMempoolActionTest/CanCall");
            IFullNode         fullNode   = this.BuildServicedNode(dir);
            MempoolController controller = fullNode.Services.ServiceProvider.GetService <MempoolController>();

            List <uint256> result = await controller.GetRawMempool();

            Assert.NotNull(result);
        }
コード例 #2
0
        public async Task CanCall_GetRawMempoolAsync()
        {
            string            dir        = CreateTestDir(this);
            IFullNode         fullNode   = this.BuildServicedNode(dir);
            MempoolController controller = fullNode.Services.ServiceProvider.GetService <MempoolController>();

            List <uint256> result = await controller.GetRawMempool();

            Assert.NotNull(result);
        }
コード例 #3
0
        public async Task CanCall_GetRawMempoolAsync()
        {
            var initialBlockSignature = Block.BlockSignature;

            try
            {
                Block.BlockSignature = false;
                string            dir        = CreateTestDir(this);
                IFullNode         fullNode   = this.BuildServicedNode(dir);
                MempoolController controller = fullNode.Services.ServiceProvider.GetService <MempoolController>();

                List <uint256> result = await controller.GetRawMempool();

                Assert.NotNull(result);
            }
            finally
            {
                Block.BlockSignature = initialBlockSignature;
            }
        }