merge-script
35bf426e02
Merge bitcoin/bitcoin#28724 : wallet: Cleanup accidental encryption keys in watchonly wallets
...
69e95c2b4f99eb4c2af6b2b6cc6a66abfea753df tests: Test cleanup of mkeys from wallets without privkeys (Andrew Chow)
2b9279b50a3682ab97308888b4f272d3ae379811 wallet: Remove unused encryption keys from watchonly wallets (Andrew Chow)
813a16a463326079472366aed42f5218a57db63b wallet: Add HasCryptedKeys (Andrew Chow)
Pull request description:
An earlier version allowed users to create watchonly wallets (wallets without private keys) that were "encrypted". Such wallets would have a stored encryption keys, but nothing would actually be encrypted with them. This can cause unexpected behavior such as https://github.com/bitcoin-core/gui/issues/772 .
We can detect such wallets as they will have the disable private keys flag set, no encrypted keys, and encryption keys. For such wallets, we can remove those encryption keys thereby avoiding any issues that may result from this unexpected situation.
ACKs for top commit:
sipa:
utACK 69e95c2b4f99eb4c2af6b2b6cc6a66abfea753df.
laanwj:
Code review re-ACK 69e95c2b4f99eb4c2af6b2b6cc6a66abfea753df
furszy:
Code review ACK 69e95c2b4f99eb4
Tree-SHA512: 901932cd709c57e66c598f011f0105a243b5a8b539db2ef3fcf370dca4cf35ae09bc1110e8fca8353be470f159468855a4dd96b99bc9c1112adc86ccc50e1b9d
2025-01-10 15:29:47 +00:00
..
2024-12-04 12:46:33 +07:00
2024-12-03 11:04:10 +01:00
2024-03-01 13:13:07 -05:00
2024-12-17 10:12:31 +07:00
2024-02-27 18:28:19 +00:00
2024-12-18 10:59:25 +01:00
2024-12-04 15:09:05 -04:00
2024-12-04 15:09:05 -04:00
2024-12-18 09:20:26 +07:00
2024-12-18 09:20:26 +07:00
2024-11-12 09:24:54 -05:00
2024-06-13 13:17:57 +01:00
2024-08-29 13:49:57 +02:00
2024-06-12 14:38:39 +01:00
2025-01-07 15:29:17 -05:00
2025-01-06 18:52:59 -05:00
2024-07-08 11:12:01 +02:00
2024-12-04 15:09:05 -04:00
2025-01-06 18:52:59 -05:00
2024-12-30 16:40:11 -05:00
2024-11-04 14:59:46 -05:00
2024-12-10 21:51:48 +01:00
2025-01-09 19:31:07 -05:00
2024-12-20 15:01:44 +01:00
2025-01-09 19:31:07 -05:00
2025-01-10 15:29:47 +00:00
2024-10-25 18:09:36 +01:00
2023-12-15 15:20:54 +01:00
2024-09-14 20:33:32 +03:00
2024-10-28 12:36:19 +00:00
2024-07-30 14:06:58 -04:00
2024-07-30 14:06:58 -04:00
2024-09-20 12:55:22 -04:00
2024-11-11 12:47:53 -03:00
2024-11-11 12:47:53 -03:00
2023-11-21 17:37:25 +01:00
2025-01-03 09:19:53 -05:00
2024-08-29 13:49:57 +02:00
2024-05-30 08:35:18 -04:00
2024-12-19 13:46:31 +01:00
2024-08-06 11:03:31 +02:00
2024-08-06 11:03:31 +02:00
2024-12-03 17:38:41 -05:00
2024-10-28 12:36:19 +00:00
2024-11-20 22:55:25 +01:00
2024-10-28 12:36:19 +00:00
2024-12-04 13:20:46 -05:00
2024-10-28 12:36:19 +00:00
2024-11-20 22:55:23 +01:00
2024-10-28 12:36:19 +00:00
2024-11-20 22:55:25 +01:00
2024-10-28 12:36:19 +00:00
2024-11-20 22:55:23 +01:00
2024-08-29 13:49:57 +02:00
2024-07-08 11:12:01 +02:00
2024-05-16 10:16:08 -05:00
2024-09-17 09:54:18 +02:00
2024-10-28 11:38:38 -04:00
2024-11-14 13:41:02 -05:00
2024-11-14 13:41:02 -05:00
2024-08-27 07:00:27 +02:00
2024-12-03 18:02:37 -05:00
2024-11-15 17:16:03 +01:00
2024-10-28 12:35:49 +00:00
2024-11-11 14:14:39 +00:00
2024-11-23 15:31:39 +00:00
2024-12-04 14:09:05 -05:00
2024-12-02 13:52:34 +01:00
2024-06-07 13:55:23 -04:00
2024-11-26 20:47:08 -05:00
2024-12-05 14:37:47 +00:00
2024-06-07 13:55:23 -04:00
2024-07-04 22:35:29 +02:00
2024-11-30 20:19:08 +01:00
2024-11-30 20:19:08 +01:00
2024-05-16 15:03:13 -04:00
2024-08-13 07:44:31 +02:00
2024-08-29 13:49:57 +02:00
2024-07-24 09:39:35 +02:00
2024-01-05 17:12:38 +01:00
2024-11-04 14:59:46 -05:00
2024-08-29 13:49:57 +02:00
2024-07-08 11:12:01 +02:00
2024-12-03 10:38:21 +01:00
2024-12-04 15:09:05 -04:00
2024-11-04 17:08:21 +01:00
2024-06-26 15:28:26 -04:00
2024-06-12 16:19:50 -03:00
2025-01-09 14:14:43 +01:00
2024-09-06 09:08:10 -04:00
2024-10-27 15:38:54 +01:00
2024-08-04 08:52:22 +02:00
2024-08-04 08:51:36 +02:00
2024-10-01 11:31:39 +02:00
2024-10-01 11:31:39 +02:00
2024-10-25 15:02:07 -04:00
2024-10-24 18:23:30 +02:00
2024-11-04 18:46:40 +01:00
2024-04-07 14:04:45 +01:00
2024-07-08 11:12:01 +02:00
2024-05-16 10:16:08 -05:00
2024-02-28 10:05:56 -03:00
2024-11-26 13:22:55 +01:00
2024-10-01 21:55:18 -04:00
2024-05-20 16:48:19 +00:00
2024-07-08 11:12:01 +02:00
2024-12-27 09:09:29 -05:00
2024-11-26 13:22:55 +01:00
2024-08-13 07:44:31 +02:00
2024-07-01 12:39:53 -04:00
2024-10-10 12:22:12 +02:00
2024-09-10 11:20:40 -03:00
2023-12-06 11:22:42 -05:00
2023-12-02 22:03:08 +01:00
2023-11-20 14:02:27 +01:00
2024-03-21 16:41:16 +01:00
2024-05-03 14:20:44 -03:00
2024-05-03 14:20:44 -03:00
2024-11-11 14:14:39 +00:00
2024-09-02 15:43:33 +01:00
2024-09-11 17:41:26 +02:00
2024-10-26 23:44:15 +02:00
2024-10-26 23:44:15 +02:00
2024-05-16 10:16:08 -05:00
2024-07-11 19:08:46 +01:00
2024-12-16 10:39:28 +01:00
2024-08-28 19:09:51 +02:00
2024-12-16 15:23:56 +01:00
2024-10-21 23:24:17 +02:00
2024-10-21 23:24:17 +02:00
2024-10-28 12:36:19 +00:00
2024-02-15 14:43:14 +01:00
2024-02-16 17:12:52 +01:00
2024-12-19 14:41:21 +01:00
2024-08-29 13:49:57 +02:00
2024-12-19 13:46:52 +01:00
2024-11-04 18:46:40 +01:00
2024-12-19 14:39:55 +01:00
2024-05-16 18:16:46 +02:00
2024-07-08 11:12:01 +02:00
2024-07-08 11:12:01 +02:00
2024-10-28 19:13:46 -04:00
2024-12-13 18:56:37 -05:00
2024-11-14 13:41:02 -05:00
2024-09-18 20:03:47 +02:00
2024-09-18 20:03:47 +02:00
2024-12-31 00:04:20 -03:00
2024-12-31 00:04:20 -03:00
2024-10-01 21:55:18 -04:00
2024-10-24 21:23:56 -04:00
2024-08-07 20:00:28 +01:00
2024-07-24 09:15:34 +02:00
2025-01-03 09:19:53 -05:00
2023-11-16 11:36:22 +10:00
2024-12-30 14:40:27 -05:00
2024-12-13 16:12:30 +01:00
2024-10-08 15:25:47 +00:00
2024-07-25 11:01:22 +01:00
2024-07-08 11:12:01 +02:00