classVariant(collections.namedtuple("Variant","call data rescan")):
"""Helper for importing one key and verifying scanned transactions."""
defdo_import(self):
defdo_import(self,timestamp):
"""Call one key import RPC."""
ifself.call==Call.single:
@ -51,15 +51,15 @@ class Variant(collections.namedtuple("Variant", "call data rescan")):
@@ -51,15 +51,15 @@ class Variant(collections.namedtuple("Variant", "call data rescan")):
"""Verify that getbalance/listtransactions return expected values."""
balance=self.node.getbalance(self.label,0,True)
@ -76,7 +76,7 @@ class Variant(collections.namedtuple("Variant", "call data rescan")):
@@ -76,7 +76,7 @@ class Variant(collections.namedtuple("Variant", "call data rescan")):
assert_equal(tx["category"],"receive")
assert_equal(tx["label"],self.label)
assert_equal(tx["txid"],txid)
assert_equal(tx["confirmations"],1)
assert_equal(tx["confirmations"],confirmations)
assert_equal("trusted"notintx,True)
ifself.data!=Data.priv:
assert_equal(tx["involvesWatchonly"],True)
@ -109,9 +109,13 @@ class ImportRescanTest(BitcoinTestFramework):
@@ -109,9 +109,13 @@ class ImportRescanTest(BitcoinTestFramework):