HomePhabricator

Bump wallet version for pre split keypool

Description

Bump wallet version for pre split keypool

Summary:
Bump the wallet version to indicate support for the pre split keypool.
Also prevents any wallets from upgrading to versions between HD_SPLIT
and PRE_SPLIT_KEYPOOL.

Partial backport of Core PR12560 (4/4)
https://github.com/bitcoin/bitcoin/pull/12560/commits/a8da482a8bc87ff26194612727d4a7b86b2fb60d

Depends on D4206

Test Plan:
Using a wallet from before v0.19.7:

make check
./bitcoind -printtoconsole -upgradewallet=190700
./bitcoin-cli getwalletinfo

Above should output something like:

{
   "walletname": "",
   "walletversion": 200300,
   "balance": 0.00000000,
   "unconfirmed_balance": 0.00000000,
   "immature_balance": 0.00000000,
   "txcount": 0,
   "keypoololdest": 1570130795,
   "keypoolsize": 2000,
   "keypoolsize_hd_internal": 0,
   "paytxfee": 0.00000000,
   "hdmasterkeyid": "0a6b7ba8344e7f65abca305956e696c2b2d4023a"
}

Reviewers: deadalnix, Fabien, jasonbcox, O1 Bitcoin ABC, #bitcoin_abc

Reviewed By: jasonbcox, O1 Bitcoin ABC, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D4207

Details

Provenance
Wladimir J. van der Laan <laanwj@gmail.com>Authored on May 14 2018, 06:04
nakihitoCommitted on Oct 7 2019, 18:03
nakihitoPushed on Oct 7 2019, 18:03
Reviewer
Restricted Owners Package
Differential Revision
D4207: Bump wallet version for pre split keypool
Parents
rABC39892cfb1e39: Allow -upgradewallet to upgradewallets to HD and use a keypool of presplit keys…
Branches
Unknown
Tags
Unknown

Event Timeline