aboutsummaryrefslogtreecommitdiff
path: root/test/functional/wallet-dump.py
diff options
context:
space:
mode:
authorJonas Schnelli <dev@jonasschnelli.ch>2017-01-10 16:45:30 +0100
committerJonas Schnelli <dev@jonasschnelli.ch>2017-03-24 10:28:37 +0100
commit02592f4c5e6d9416165deef96398ac7760f457d1 (patch)
treee253d748e905d589885c1816acb798bd123434d9 /test/functional/wallet-dump.py
parenta230b0588788dbe1ac84622aea169c577b381241 (diff)
[Wallet] split the keypool in an internal and external part
Diffstat (limited to 'test/functional/wallet-dump.py')
-rwxr-xr-xtest/functional/wallet-dump.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/wallet-dump.py b/test/functional/wallet-dump.py
index b819b72b75..7eaa8090b5 100755
--- a/test/functional/wallet-dump.py
+++ b/test/functional/wallet-dump.py
@@ -88,7 +88,7 @@ class WalletDumpTest(BitcoinTestFramework):
read_dump(tmpdir + "/node0/wallet.unencrypted.dump", addrs, None)
assert_equal(found_addr, test_addr_count) # all keys must be in the dump
assert_equal(found_addr_chg, 50) # 50 blocks where mined
- assert_equal(found_addr_rsv, 90 + 1) # keypool size (TODO: fix off-by-one)
+ assert_equal(found_addr_rsv, 90*1.2) # 90 keys plus 20% internal keys
#encrypt wallet, restart, unlock and dump
self.nodes[0].encryptwallet('test')
@@ -102,8 +102,8 @@ class WalletDumpTest(BitcoinTestFramework):
found_addr, found_addr_chg, found_addr_rsv, hd_master_addr_enc = \
read_dump(tmpdir + "/node0/wallet.encrypted.dump", addrs, hd_master_addr_unenc)
assert_equal(found_addr, test_addr_count)
- assert_equal(found_addr_chg, 90 + 1 + 50) # old reserve keys are marked as change now
- assert_equal(found_addr_rsv, 90 + 1) # keypool size (TODO: fix off-by-one)
+ assert_equal(found_addr_chg, 90*1.2 + 50) # old reserve keys are marked as change now
+ assert_equal(found_addr_rsv, 90*1.2)
if __name__ == '__main__':
WalletDumpTest().main ()