Samuel Dobson
0475a2378b
Merge bitcoin/bitcoin#23349: util: Use FEATURE_LATEST for wallets created with bitcoin-wallet
5b6b5ef5d178bea3c1b2f21e3bd05186312ea191 util: Use FEATURE_LATEST for wallets created with bitcoin-wallet (Hennadii Stepanov)
Pull request description:
Since the 49d2374acf5845c5f760b5fd241482f292164147 commit was athored by **jonasschnelli** in 2016, the wallet version was bumped twice: in 2017 (bitcoin/bitcoin#11250) and in 2018 (bitcoin/bitcoin#12560).
This PR bumps the version of wallets created with `bitcoin-wallet` offline tool.
On master (04437ee721e66a7b76bef5ec2f88dd1efcd03b84) -- `"walletversion": 139900`:
```
$ src/bitcoin-wallet -signet -wallet=211025-test-master create
Topping up keypool...
Wallet info
===========
Name: 211025-test-master
Format: sqlite
Descriptors: yes
Encrypted: no
HD (hd seed available): yes
Keypool Size: 6000
Transactions: 0
Address Book: 0
$ src/bitcoin-cli -signet -rpcwallet=211025-test-master getwalletinfo
{
"walletname": "211025-test-master",
"walletversion": 139900,
"format": "sqlite",
"balance": 0.00000000,
"unconfirmed_balance": 0.00000000,
"immature_balance": 0.00000000,
"txcount": 0,
"keypoolsize": 3000,
"keypoolsize_hd_internal": 3000,
"paytxfee": 0.00000000,
"private_keys_enabled": true,
"avoid_reuse": false,
"scanning": false,
"descriptors": true
}
```
With this PR -- `"walletversion": 169900`:
```
$ src/bitcoin-wallet -signet -wallet=211025-test-pr create
Topping up keypool...
Wallet info
===========
Name: 211025-test-pr
Format: sqlite
Descriptors: yes
Encrypted: no
HD (hd seed available): yes
Keypool Size: 6000
Transactions: 0
Address Book: 0
$ src/bitcoin-cli -signet -rpcwallet=211025-test-pr getwalletinfo
{
"walletname": "211025-test-pr",
"walletversion": 169900,
"format": "sqlite",
"balance": 0.00000000,
"unconfirmed_balance": 0.00000000,
"immature_balance": 0.00000000,
"txcount": 0,
"keypoolsize": 3000,
"keypoolsize_hd_internal": 3000,
"paytxfee": 0.00000000,
"private_keys_enabled": true,
"avoid_reuse": false,
"scanning": false,
"descriptors": true
}
```
ACKs for top commit:
lsilva01:
Code Review ACK 5b6b5ef
stratospher:
ACK 5b6b5ef.
rajarshimaitra:
ACK 5b6b5ef5d1
meshcollider:
Code review ACK 5b6b5ef5d178bea3c1b2f21e3bd05186312ea191
Tree-SHA512: 0221e76fa8f29037920d0a483c742bf270ecaead45f30230943b78775aaea63ac052e43fe712d15c2326e515dea2d2ac82de0924882598421c1874f2e6f442a6
2021-11-16 15:32:18 +13:00
..
2021-11-10 19:42:35 +01:00
2021-10-05 11:10:37 +02:00
2021-09-10 11:18:58 +08:00
2021-11-03 14:34:38 +00:00
2021-09-29 14:10:29 +02:00
2021-10-20 11:54:03 +05:30
2021-10-12 14:36:51 +13:00
2021-10-26 15:54:52 +01:00
2021-11-15 18:08:49 +01:00
2021-10-05 11:10:47 -04:00
2021-10-05 17:28:02 +02:00
2021-10-21 09:36:07 +08:00
2021-11-15 18:08:49 +01:00
2021-11-05 00:08:00 +13:00
2021-10-22 12:32:16 +02:00
2021-11-15 18:08:49 +01:00
2021-11-10 14:35:22 +01:00
2021-11-12 12:05:00 -05:00
2021-07-14 14:43:45 -07:00
2021-10-20 18:36:40 -04:00
2021-11-15 20:32:42 +01:00
2021-10-11 20:45:56 +08:00
2021-11-10 14:35:22 +01:00
2021-11-16 15:32:18 +13:00
2021-09-27 06:57:20 -04:00
2021-11-12 11:46:34 +01:00
2021-09-07 09:11:10 +02:00
2021-10-05 11:10:47 -04:00
2021-09-28 22:21:10 -04:00
2021-11-10 17:38:45 +01:00
2021-11-10 17:38:45 +01:00
2021-11-09 17:09:50 +00:00
2021-07-30 11:21:51 +02:00
2021-10-05 11:10:37 +02:00
2021-08-20 15:49:50 -04:00
2021-03-17 17:59:22 -07:00
2021-08-17 16:54:47 +08:00
2021-11-11 13:14:01 +01:00
2021-08-17 16:54:47 +08:00
2021-10-12 12:45:55 +02:00
2021-08-17 16:54:47 +08:00
2021-06-18 20:10:07 +02:00
2021-08-17 16:54:47 +08:00
2021-11-01 11:25:42 +08:00
2021-08-17 16:54:47 +08:00
2021-10-01 13:51:10 +00:00
2021-10-20 15:52:08 +02:00
2021-10-14 17:49:52 +05:30
2021-07-09 11:19:36 +02:00
2021-10-25 10:44:17 -04:00
2021-07-30 11:03:44 +02:00
2021-10-01 13:51:10 +00:00
2021-08-16 16:04:47 +08:00
2021-08-16 16:04:47 +08:00
2021-06-17 09:47:08 -04:00
2021-06-17 09:47:08 -04:00
2021-03-01 17:36:16 +01:00
2021-05-04 06:53:32 +02:00
2021-10-05 10:42:34 +02:00
2021-10-11 09:17:28 +02:00
2021-10-05 10:42:34 +02:00
2021-10-15 10:01:56 +02:00
2021-06-30 08:19:12 +10:00
2021-06-30 08:19:12 +10:00
2021-08-02 23:48:32 +10:00
2021-07-01 20:20:52 +02:00
2021-09-30 12:06:27 +13:00
2021-08-24 11:30:09 +02:00
2021-06-16 10:48:58 +02:00
2021-10-05 11:10:47 -04:00
2021-10-22 04:03:45 +03:00
2021-10-05 11:10:47 -04:00
2021-10-05 23:53:33 +02:00
2021-04-23 11:35:15 -07:00
2021-09-02 13:17:46 +08:00
2021-03-29 23:29:42 +02:00
2021-10-04 22:45:43 +02:00
2021-10-05 11:10:47 -04:00
2021-03-16 13:59:18 +01:00
2021-11-15 18:08:49 +01:00
2021-07-12 21:46:59 +08:00
2021-05-24 12:14:16 -07:00
2021-11-12 12:04:20 -05:00
2021-11-12 12:04:20 -05:00
2021-10-11 21:45:49 +10:00
2021-10-11 21:45:49 +10:00
2021-11-13 21:24:51 +02:00
2021-07-08 12:28:23 +02:00
2021-09-24 15:40:04 +08:00
2021-10-15 01:02:45 +00:00
2021-10-21 09:37:30 +08:00
2021-11-08 07:19:10 +02:00
2021-09-16 13:17:01 -05:00
2021-03-04 12:34:46 +08:00
2021-09-15 15:46:48 -04:00
2021-11-12 12:05:00 -05:00
2021-10-11 20:46:25 +08:00
2021-10-01 13:51:10 +00:00
2021-10-05 11:11:18 +02:00
2021-09-30 07:41:57 +08:00
2021-05-27 13:50:11 -04:00
2021-10-21 09:39:16 +08:00
2021-10-21 09:39:16 +08:00
2021-05-19 19:41:05 +02:00
2021-07-15 12:52:38 -07:00
2021-11-03 14:37:45 +00:00
2021-09-28 22:21:10 -04:00
2021-09-03 05:21:58 -04:00
2021-09-03 05:21:58 -04:00
2021-11-03 14:58:50 +01:00
2021-11-02 13:40:09 +01:00
2021-11-03 14:58:54 +01:00
2021-11-03 14:58:53 +01:00
2021-11-03 14:58:53 +01:00
2021-04-06 14:50:17 +08:00
2021-08-04 19:20:32 +08:00
2021-08-04 19:20:32 +08:00
2021-10-22 12:32:16 +02:00
2021-08-23 18:53:34 +02:00
2021-06-12 12:25:28 -07:00
2021-06-12 12:25:28 -07:00
2021-10-05 23:53:33 +02:00
2021-11-09 12:39:01 +01:00
2021-05-04 06:55:31 +02:00
2021-09-24 15:40:04 +08:00
2021-10-19 15:47:53 +02:00
2021-10-01 13:51:10 +00:00
2021-05-31 14:56:17 +02:00
2021-04-04 18:08:36 +02:00
2021-04-04 18:08:36 +02:00
2021-09-07 09:11:10 +02:00
2021-03-15 10:41:30 +08:00
2021-05-05 20:19:03 +02:00
2021-09-29 18:46:30 +02:00
2021-09-06 23:43:51 +02:00
2021-09-27 06:57:20 -04:00
2021-07-05 08:59:38 +03:00
2021-10-05 11:10:47 -04:00
2021-03-02 12:21:32 +00:00
2021-09-27 06:57:20 -04:00
2021-08-20 16:59:41 +02:00
2021-11-03 08:59:03 +01:00
2021-11-03 08:59:03 +01:00
2021-02-27 01:08:09 +10:00
2021-07-20 13:12:42 +01:00
2021-10-22 12:32:16 +02:00
2021-05-24 12:14:16 -07:00
2021-11-10 14:35:22 +01:00
2021-11-10 14:35:22 +01:00
2021-06-30 08:19:12 +10:00
2021-06-30 08:19:12 +10:00