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); }
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); }
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; } }