Samuel Dobson
f98872f127
Merge #18244 : rpc: fundrawtransaction and walletcreatefundedpsbt also lock manually selected coins
...
6d1f51343cf11b07cd401fbd0c5bc3603e185a0e [rpc] fundrawtransaction, walletcreatefundedpsbt lock manually selected coins (Sjors Provoost)
Pull request description:
When using `fundrawtransaction` and `walletcreatefundedpsbt` with `lockUnspents`, it would only lock automatically selected coins, not manually selected coins. That doesn't make much sense to me if the goal is to prevent accidentally double-spending yourself before you broadcast a transaction.
Note that when creating a transaction, manually selected coins are automatic "unlocked" (or more accurately: the lock is ignored). Earlier versions of this PR introduced an error when a locked coin is manually selected, but this idea was abandoned after some discussion. An application that uses this RPC should either rely on automatic coin selection (with `lockUnspents`) or handle lock concurrency itself with manual coin selection. In particular it needs to make sure to avoid/pause calls with automatic coin selection between calling `lockunspent` and the subsequent spending RPC.
See #7518 for historical background.
ACKs for top commit:
meshcollider:
Code review ACK 6d1f51343cf11b07cd401fbd0c5bc3603e185a0e
fjahr:
Code review ACK 6d1f51343cf11b07cd401fbd0c5bc3603e185a0e
Tree-SHA512: 8773c788d92f2656952e1beac147ba9956b8c5132d474e0880e4c89ff53642928b4cbfcd1cb3d17798b9284f02618a8830c93a9f7a4733e5bded96adff1d5d4d
2020-08-31 23:30:53 +12:00
..
2020-08-31 08:29:27 +02:00
2020-05-20 08:27:07 -04:00
2020-08-04 13:29:40 -04:00
2020-01-28 17:00:01 +01:00
2020-06-29 11:31:17 +08:00
2020-08-21 12:48:46 +08:00
2020-08-27 14:33:00 -04:00
2020-01-28 16:59:07 +01:00
2020-04-30 18:02:04 +08:00
2020-08-27 14:33:00 -04:00
2020-08-04 13:29:40 -04:00
2020-07-30 13:44:54 -07:00
2020-08-31 10:10:57 +02:00
2020-08-28 20:29:16 +02:00
2020-08-25 20:18:40 +08:00
2020-06-09 13:39:09 -07:00
2020-08-20 17:55:06 +00:00
2020-08-31 10:56:34 +02:00
2020-02-09 07:44:29 -08:00
2020-08-31 13:07:24 +08:00
2020-08-31 23:30:53 +12:00
2020-04-16 13:33:09 -04:00
2020-07-06 03:52:37 +02:00
2020-06-22 12:12:22 +02:00
2020-07-03 20:43:55 -07:00
2020-08-12 09:22:07 +01:00
2020-08-12 09:22:07 +01:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2020-07-08 21:44:45 +08:00
2020-07-03 20:43:55 -07:00
2020-08-28 16:50:57 +02:00
2020-08-28 16:50:57 +02:00
2019-10-16 08:56:57 -07:00
2019-09-05 13:25:11 +12:00
2020-07-29 16:39:00 +07:00
2020-08-14 08:44:42 +12:00
2020-07-29 16:39:00 +07:00
2020-08-27 14:33:00 -04:00
2020-05-28 09:55:39 +03:00
2020-05-28 09:55:39 +03:00
2020-07-30 13:57:54 -07:00
2020-05-26 17:27:15 -04:00
2020-06-21 06:41:55 -04:00
2020-05-20 07:30:29 -04:00
2019-12-30 10:42:20 +13:00
2020-08-27 20:07:27 -04:00
2020-08-12 10:01:44 +08:00
2020-04-16 13:33:09 -04:00
2020-07-29 16:39:00 +07:00
2020-07-29 16:36:44 +07:00
2020-04-03 16:29:26 +02:00
2020-04-16 13:33:09 -04:00
2020-05-04 19:53:58 +03:00
2020-07-01 14:44:28 -04:00
2020-07-01 14:44:28 -04:00
2020-08-20 17:55:06 +00:00
2019-12-30 10:42:20 +13:00
2020-04-16 13:33:09 -04:00
2019-12-30 10:42:20 +13:00
2020-05-22 01:40:31 +09:00
2020-08-06 19:41:43 +02:00
2020-04-08 14:45:27 +00:00
2019-12-30 10:42:20 +13:00
2020-07-08 14:26:14 +03:00
2020-08-27 14:33:00 -04:00
2020-05-20 07:30:29 -04:00
2020-06-16 15:15:46 -04:00
2019-12-30 10:42:20 +13:00
2020-08-06 16:28:26 -07:00
2020-08-06 16:28:26 -07:00
2020-05-21 06:53:39 -04:00
2020-05-13 16:20:13 -04:00
2020-06-27 11:49:28 -04:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2020-08-31 10:10:57 +02:00
2020-08-27 14:33:00 -04:00
2019-12-30 10:42:20 +13:00
2020-08-18 18:03:57 +00:00
2019-12-30 10:42:20 +13:00
2020-06-07 17:03:49 +02:00
2020-05-28 09:54:24 +03:00
2020-08-15 18:23:55 -04:00
2020-06-13 12:24:18 +02:00
2020-01-28 17:01:48 +01:00
2020-05-12 18:03:39 +03:00
2020-04-01 12:49:15 +02:00
2020-06-29 18:49:13 +01:00
2019-11-21 21:13:08 +01:00
2020-04-05 01:01:13 +02:00
2020-04-05 10:46:24 +08:00
2020-08-31 10:56:34 +02:00
2020-04-16 13:33:09 -04:00
2020-07-30 13:57:54 -07:00
2020-03-30 16:09:51 -07:00
2020-06-15 08:08:19 -04:00
2020-06-15 08:08:19 -04:00
2020-07-30 14:38:50 +03:00
2020-07-30 14:38:50 +03:00
2020-08-28 20:29:16 +02:00
2020-08-28 20:29:16 +02:00
2019-10-29 11:30:12 +02:00
2020-08-15 12:03:16 +02:00
2020-08-15 12:03:16 +02:00
2020-08-28 17:51:37 +02:00
2020-08-24 21:50:59 +02:00
2020-08-24 21:50:59 +02:00
2020-01-08 12:35:59 +00:00
2020-05-11 00:20:57 +02:00
2020-06-27 11:49:28 -04:00
2020-05-05 04:45:59 +03:00
2019-12-30 10:42:20 +13:00
2020-07-01 18:03:12 -04:00
2020-07-01 18:02:38 -04:00
2020-04-30 18:02:03 +08:00
2020-08-13 15:44:48 +02:00
2020-08-18 12:15:48 +08:00
2020-06-24 16:32:19 -04:00
2020-06-24 16:32:19 -04:00
2020-08-18 18:03:56 +00:00
2020-07-30 13:57:54 -07:00
2020-08-10 21:30:42 +08:00
2020-04-30 09:19:14 -04:00
2020-04-16 13:33:09 -04:00
2019-11-12 14:50:44 -08:00
2020-07-26 16:44:07 +02:00
2020-06-21 06:02:59 -04:00
2020-06-21 06:02:59 -04:00
2020-06-22 12:12:22 +02:00
2018-06-25 00:08:49 -04:00
2020-07-30 13:57:09 -07:00
2020-07-26 22:46:28 +03:00
2020-08-02 16:42:39 +03:00
2020-08-02 16:42:39 +03:00
2019-12-30 10:42:20 +13:00
2020-08-18 10:46:53 +03:00
2020-06-27 11:49:28 -04:00
2019-12-06 10:02:08 +01:00
2020-08-07 14:55:02 +02:00
2019-12-30 10:42:20 +13:00
2020-07-29 07:53:19 +02:00
2020-07-01 14:44:24 -04:00
2020-07-30 13:45:03 -07:00
2020-07-30 13:45:03 -07:00
2020-08-06 19:41:43 +02:00
2020-07-30 13:57:09 -07:00
2020-04-16 13:33:09 -04:00
2020-08-28 10:42:04 +02:00
2020-08-28 10:42:04 +02:00
2020-05-22 16:30:07 -04:00
2020-05-22 16:30:07 -04:00
2020-07-19 02:10:41 -04:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2020-07-29 16:36:44 +07:00
2020-06-10 15:01:20 +03:00
2020-06-10 15:01:20 +03:00