Ejemplo n.º 1
0
        public async Task Has_Block_ReturnTrue()
        {
            var result = await _fullBlockchainService.HasBlockAsync(_kernelTestHelper.BestBranchBlockList[1].GetHash());

            result.ShouldBeTrue();

            result = await _fullBlockchainService.HasBlockAsync(_kernelTestHelper.LongestBranchBlockList[1].GetHash());

            result.ShouldBeTrue();

            result = await _fullBlockchainService.HasBlockAsync(_kernelTestHelper.ForkBranchBlockList[1].GetHash());

            result.ShouldBeTrue();

            result = await _fullBlockchainService.HasBlockAsync(_kernelTestHelper.UnlinkedBranchBlockList[1].GetHash());

            result.ShouldBeTrue();
        }