DanS and Claude Opus 5.5
70dd6c6f8b
wallet: stop zsweep reporting success on a locked wallet
...
On an encrypted wallet that is locked, the sweep op could get no spending key, skipped every
address without a word, and finished "Created 0 transactions ... status=1": a successful round that
swept nothing, every interval, with no hint anywhere. Every restart locks an encrypted wallet, so an
exchange that restarted its node to upgrade saw its deposit -> withdraw sweep simply stop.
- RunSaplingSweep skips the round while the wallet is locked, logs why, and looks again an interval
later, as consolidation and autoshield already do.
- The op fails with RPC_WALLET_UNLOCK_NEEDED if the wallet is locked when it starts, and fails the
round with that error if the wallet is locked part-way through (a walletpassphrase timeout).
- An address the wallet has only a viewing key for is now logged (zrpcunsafe) rather than skipped
silently.
Regtest, dev vs this branch on the same encrypted fixture: dev logs "Created 0 transactions ...
status=success" while locked; this logs "wallet locked; not sweeping ... Unlock it with
walletpassphrase", and locking mid-round ends it "status=failed, error=Wallet was locked during
the sweep ...". After unlocking, both sweep everything.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com >
2026-11-18 11:08:57 -06:00
..
2026-08-27 15:19:22 -05:00
2026-03-19 09:30:50 -05:00
2014-06-21 19:47:43 +02:00
2026-08-27 11:35:38 -05:00
2026-07-06 01:57:18 -05:00
2026-10-31 11:59:04 -05:00
2026-07-08 05:48:39 +02:00
2026-03-19 09:30:50 -05:00
2012-04-27 10:14:33 -04:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-03-03 17:28:49 -06:00
2023-12-04 05:10:48 +00:00
2026-10-28 11:09:20 -05:00
2024-03-15 15:16:04 -04:00
2024-10-01 10:49:13 -04:00
2020-10-21 07:28:10 -04:00
2024-02-27 23:59:59 +01:00
2025-12-30 16:38:42 -05:00
2024-02-27 23:59:59 +01:00
2020-10-21 07:28:10 -04:00
2024-02-27 23:59:59 +01:00
2026-11-18 11:08:57 -06:00
2026-10-17 08:16:09 -05:00
2026-03-04 18:42:42 -06:00
2024-02-27 23:59:59 +01:00
2023-01-06 15:23:22 +00:00
2024-02-27 23:59:59 +01:00
2026-08-27 16:51:16 -05:00
2026-08-27 16:51:16 -05:00
2026-07-21 14:13:31 -05:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-08-27 15:55:00 -05:00
2026-08-27 15:55:00 -05:00
2026-08-25 19:18:30 +02:00
2026-08-25 19:18:30 +02:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2021-01-23 22:18:57 -05:00
2026-08-31 17:35:52 -05:00
2020-10-21 07:28:10 -04:00
2020-12-16 08:30:32 -05:00
2026-03-04 18:42:42 -06:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-10-27 15:27:25 -05:00
2026-08-27 12:24:04 -05:00
2026-08-25 18:36:03 -05:00
2026-03-04 18:42:42 -06:00
2024-02-27 23:59:59 +01:00
2026-08-25 18:36:03 -05:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2018-12-31 21:41:05 -11:00
2024-02-27 23:59:59 +01:00
2026-08-21 19:15:56 -05:00
2026-10-27 15:27:25 -05:00
2024-02-27 23:59:59 +01:00
2026-08-27 15:02:01 -05:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-08-27 15:55:00 -05:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-10-28 17:05:03 -05:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-01-01 15:24:57 -05:00
2024-02-27 23:59:59 +01:00
2026-10-30 22:28:32 -05:00
2024-02-27 23:59:59 +01:00
2025-08-08 21:58:39 -04:00
2026-03-04 18:42:42 -06:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-01-01 15:24:57 -05:00
2024-02-27 23:59:59 +01:00
2026-08-31 02:38:38 -05:00
2026-08-27 15:02:01 -05:00
2026-08-27 15:02:01 -05:00
2026-08-27 13:20:51 -05:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-08-31 02:38:38 -05:00
2024-03-15 13:33:18 -04:00
2024-03-15 13:33:18 -04:00
2024-02-27 23:59:59 +01:00
2026-08-27 15:02:01 -05:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-10-31 11:59:04 -05:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-07-06 01:57:18 -05:00
2026-08-23 06:23:09 +02:00
2026-08-23 06:23:09 +02:00
2024-02-27 23:59:59 +01:00
2018-07-06 07:08:33 +07:00
2018-07-06 07:10:16 +07:00
2026-10-31 11:59:04 -05:00
2026-10-28 12:37:36 -05:00
2026-08-27 03:56:23 -05:00
2026-10-31 11:59:04 -05:00
2024-02-27 23:59:59 +01:00
2026-06-28 16:58:31 -05:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-03-04 18:42:42 -06:00
2024-02-27 23:59:59 +01:00
2026-10-30 22:27:41 -05:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2021-08-09 17:40:35 -04:00
2026-10-16 21:23:00 -05:00
2026-10-16 21:23:00 -05:00
2026-03-05 05:22:44 -06:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-10-28 10:23:20 -05:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-08-27 16:51:16 -05:00
2026-07-09 01:26:30 +02:00
2024-02-27 23:59:59 +01:00
2026-06-29 21:22:54 -05:00
2026-06-29 21:22:54 -05:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-04-18 06:41:25 -07:00
2024-03-15 15:14:26 -04:00
2026-03-04 18:42:42 -06:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-08-28 23:35:06 -05:00
2024-02-28 11:39:22 -05:00
2024-02-27 23:59:59 +01:00
2024-09-27 22:40:46 +02:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-10-22 08:50:39 -04:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-03-19 09:30:50 -05:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-08-27 15:19:22 -05:00
2026-07-09 06:59:25 +02:00
2026-07-09 09:01:06 +02:00
2026-07-09 09:01:06 +02:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-08-27 15:19:22 -05:00
2024-06-09 11:22:21 -04:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-10-28 10:36:23 -05:00
2026-10-28 10:36:23 -05:00
2026-09-01 19:06:54 -05:00
2026-03-04 18:42:42 -06:00
2024-02-27 23:59:59 +01:00