Changeset View
Changeset View
Standalone View
Standalone View
test/functional/mempool_updatefromblock.py
#!/usr/bin/env python3 | #!/usr/bin/env python3 | ||||
# Copyright (c) 2020 The Bitcoin Core developers | # Copyright (c) 2020 The Bitcoin Core developers | ||||
# Distributed under the MIT software license, see the accompanying | # Distributed under the MIT software license, see the accompanying | ||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | # file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
"""Test mempool descendants/ancestors information update. | """Test mempool descendants/ancestors information update. | ||||
Test mempool update of transaction descendants/ancestors information (count, size) | Test mempool update of transaction descendants/ancestors information (count, size) | ||||
when transactions have been re-added from a disconnected block to the mempool. | when transactions have been re-added from a disconnected block to the mempool. | ||||
""" | """ | ||||
import time | import time | ||||
from decimal import Decimal | from decimal import Decimal | ||||
from test_framework.test_framework import BitcoinTestFramework | from test_framework.test_framework import BitcoinTestFramework | ||||
from test_framework.util import assert_equal | from test_framework.util import assert_equal | ||||
class MempoolUpdateFromBlockTest(BitcoinTestFramework): | class MempoolUpdateFromBlockTest(BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
self.num_nodes = 1 | self.num_nodes = 1 | ||||
self.extra_args = [ | self.extra_args = [ | ||||
▲ Show 20 Lines • Show All 134 Lines • Show Last 20 Lines |