Skip to content

Commit e6770c8

Browse files
committed
fixing invalid wallet_dump.py, generated PoW blocks use a P2PKH coinbase script that now is properly marked as used inside the wallet.
Reverting the commit that was hiding this issue ebdc552 .
1 parent 4ed7024 commit e6770c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/functional/wallet_dump.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def run_test (self):
103103
found_addr, found_addr_chg, found_addr_rsv, hd_master_addr_unenc = \
104104
read_dump(dumpUnencrypted, addrs, None)
105105
assert_equal(found_addr, test_addr_count) # all keys must be in the dump
106-
assert_equal(found_addr_chg, 0) # 0 blocks where mined
106+
assert_equal(found_addr_chg, 50) # 50 blocks where mined
107107
assert_equal(found_addr_rsv, 90 * 3) # 90 keys external plus 100% internal keys plus 100% staking keys
108108

109109
#encrypt wallet, restart, unlock and dump
@@ -118,7 +118,7 @@ def run_test (self):
118118
found_addr, found_addr_chg, found_addr_rsv, hd_master_addr_enc = \
119119
read_dump(dumpEncrypted, addrs, hd_master_addr_unenc)
120120
assert_equal(found_addr, test_addr_count)
121-
assert_equal(found_addr_chg, 90 * 3 + 1) # old reserve keys are marked as change now. todo: The +1 needs to be removed once this is updated (master seed taken as an internal key)
121+
assert_equal(found_addr_chg, 90 * 3 + 1 + 50) # old reserve keys are marked as change now. todo: The +1 needs to be removed once this is updated (master seed taken as an internal key)
122122
assert_equal(found_addr_rsv, 90 * 3) # 90 external + 90 internal + 90 staking
123123

124124
# Overwriting should fail

0 commit comments

Comments
 (0)