Changeset View
Changeset View
Standalone View
Standalone View
test/functional/wallet_import_rescan.py
Show All 12 Lines | |||||
send transactions. | send transactions. | ||||
In the second part of the test, node 0 sends more BTC to each address, and the | In the second part of the test, node 0 sends more BTC to each address, and the | ||||
test makes more listtransactions and getbalance calls to confirm that the | test makes more listtransactions and getbalance calls to confirm that the | ||||
importing nodes pick up the new transactions regardless of whether rescans | importing nodes pick up the new transactions regardless of whether rescans | ||||
happened previously. | happened previously. | ||||
''' | ''' | ||||
from test_framework.test_framework import BitcoinTestFramework | |||||
from test_framework.util import ( | |||||
assert_raises_rpc_error, connect_nodes, sync_blocks, assert_equal, set_node_times) | |||||
import collections | import collections | ||||
import enum | import enum | ||||
import itertools | import itertools | ||||
from test_framework.test_framework import BitcoinTestFramework | |||||
from test_framework.util import ( | |||||
assert_equal, | |||||
assert_raises_rpc_error, | |||||
connect_nodes, | |||||
set_node_times, | |||||
sync_blocks, | |||||
) | |||||
Call = enum.Enum("Call", "single multi") | Call = enum.Enum("Call", "single multi") | ||||
Data = enum.Enum("Data", "address pub priv") | Data = enum.Enum("Data", "address pub priv") | ||||
Rescan = enum.Enum("Rescan", "no yes late_timestamp") | Rescan = enum.Enum("Rescan", "no yes late_timestamp") | ||||
class Variant(collections.namedtuple("Variant", "call data rescan prune")): | class Variant(collections.namedtuple("Variant", "call data rescan prune")): | ||||
"""Helper for importing one key and verifying scanned transactions.""" | """Helper for importing one key and verifying scanned transactions.""" | ||||
▲ Show 20 Lines • Show All 162 Lines • Show Last 20 Lines |