Changeset View
Changeset View
Standalone View
Standalone View
test/functional/rpc_blockchain.py
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | |||||
) | ) | ||||
class BlockchainTest(BitcoinTestFramework): | class BlockchainTest(BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
self.setup_clean_chain = True | self.setup_clean_chain = True | ||||
self.num_nodes = 1 | self.num_nodes = 1 | ||||
# TODO: remove -txindex. Currently required for getrawtransaction call. | |||||
self.extra_args = [["-txindex"]] | |||||
def run_test(self): | def run_test(self): | ||||
self.mine_chain() | self.mine_chain() | ||||
# Set extra args with pruning after rescan is complete | # Set extra args with pruning after rescan is complete | ||||
self.restart_node(0, extra_args=['-stopatheight=207', '-prune=1']) | self.restart_node(0, extra_args=['-stopatheight=207', '-prune=1']) | ||||
self._test_getblockchaininfo() | self._test_getblockchaininfo() | ||||
▲ Show 20 Lines • Show All 394 Lines • Show Last 20 Lines |