Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc-invalid-chains.py
#!/usr/bin/env python3 | #!/usr/bin/env python3 | ||||
# Copyright (c) 2019 The Bitcoin developers | # Copyright (c) 2019 The Bitcoin 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-ilncense.php. | # file COPYING or http://www.opensource.org/licenses/mit-ilncense.php. | ||||
import time | import time | ||||
from test_framework.test_framework import BitcoinTestFramework | from test_framework.blocktools import create_block, create_coinbase | ||||
from test_framework.p2p import P2PDataStore | from test_framework.p2p import P2PDataStore | ||||
from test_framework.test_framework import BitcoinTestFramework | |||||
from test_framework.util import assert_equal | from test_framework.util import assert_equal | ||||
from test_framework.blocktools import ( | |||||
create_block, | |||||
create_coinbase, | |||||
) | |||||
class InvalidChainsTest(BitcoinTestFramework): | class InvalidChainsTest(BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
self.num_nodes = 1 | self.num_nodes = 1 | ||||
self.setup_clean_chain = True | self.setup_clean_chain = True | ||||
self.tip = None | self.tip = None | ||||
self.blocks = {} | self.blocks = {} | ||||
▲ Show 20 Lines • Show All 136 Lines • Show Last 20 Lines |