Skip to content

Commit

Permalink
fixing invalid wallet_dump.py, generated PoW blocks use a P2PKH coinb…
Browse files Browse the repository at this point in the history
…ase script that now is properly marked as used inside the wallet.

 Reverting the commit that was hiding this issue ebdc552 .
  • Loading branch information
furszy committed Feb 21, 2021
1 parent 4ed7024 commit e6770c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/functional/wallet_dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def run_test (self):
found_addr, found_addr_chg, found_addr_rsv, hd_master_addr_unenc = \
read_dump(dumpUnencrypted, addrs, None)
assert_equal(found_addr, test_addr_count) # all keys must be in the dump
assert_equal(found_addr_chg, 0) # 0 blocks where mined
assert_equal(found_addr_chg, 50) # 50 blocks where mined
assert_equal(found_addr_rsv, 90 * 3) # 90 keys external plus 100% internal keys plus 100% staking keys

#encrypt wallet, restart, unlock and dump
Expand All @@ -118,7 +118,7 @@ def run_test (self):
found_addr, found_addr_chg, found_addr_rsv, hd_master_addr_enc = \
read_dump(dumpEncrypted, addrs, hd_master_addr_unenc)
assert_equal(found_addr, test_addr_count)
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)
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)
assert_equal(found_addr_rsv, 90 * 3) # 90 external + 90 internal + 90 staking

# Overwriting should fail
Expand Down

0 comments on commit e6770c8

Please sign in to comment.