Samuel Dobson
bbb1ba1814
Merge #17219 : wallet: allow transaction without change if keypool is empty
...
92bcd70808b9cac56b184903aa6d37baf9641b37 [wallet] allow transaction without change if keypool is empty (Sjors Provoost)
709f8685ac37510aa145ac259753583c82280038 [wallet] CreateTransaction: simplify change address check (Sjors Provoost)
5efc25f9638866941028454cfa9bae27f1519cb4 [wallet] translate "Keypool ran out" message (Sjors Provoost)
Pull request description:
Extracted from #16944
First this PR simplifies the check when generating a change address, by dropping `CanGetAddresses` and just letting `reservedest.GetReservedDestination` do this check.
Second, when the keypool is empty, instead of immediately giving up, we create a dummy change address and pass that to coin selection. If we didn't need the change address (e.g. when spending the entire balance), then it's all good. If we did need a change address, we throw the original error.
ACKs for top commit:
fjahr:
Code review ACK 92bcd70808b9cac56b184903aa6d37baf9641b37
jonasschnelli:
utACK 92bcd70808b9cac56b184903aa6d37baf9641b37
achow101:
ACK 92bcd70808b9cac56b184903aa6d37baf9641b37
meshcollider:
Code review ACK 92bcd70808b9cac56b184903aa6d37baf9641b37
Tree-SHA512: 07b8c8251f57061c58a85ebf0359be63583c23bac7a2c4cefdc14820c0cdebcc90a2bb218e5ede0db11d1e204cda149e056dfd18614642070b3d56efe2735006
2020-04-18 22:00:26 +12:00
..
2020-04-17 10:12:13 -04:00
2019-12-30 10:42:20 +13:00
2020-04-16 13:33:09 -04:00
2020-01-28 17:00:01 +01:00
2020-01-16 15:58:35 -05:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2020-01-28 16:59:07 +01:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2020-01-15 02:18:00 +07:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2020-04-17 12:16:42 -04:00
2020-04-16 13:33:09 -04:00
2019-03-31 11:41:05 -07:00
2020-04-16 13:33:09 -04:00
2020-04-17 17:17:11 -04:00
2020-02-09 07:44:29 -08:00
2020-04-17 10:12:13 -04:00
2020-04-18 22:00:26 +12:00
2020-04-16 13:33:09 -04:00
2019-10-14 13:24:54 +03:00
2019-12-30 10:42:20 +13:00
2020-01-02 11:05:36 -08:00
2020-04-16 13:33:09 -04:00
2020-03-04 14:24:19 +01: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-03-10 09:52:53 -04:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-10-16 08:56:57 -07:00
2019-09-05 13:25:11 +12:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04: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
2019-12-30 10:42:20 +13:00
2020-04-17 01:09:39 +02:00
2020-04-17 01:09:39 +02:00
2019-12-30 10:42:20 +13:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2020-04-03 16:29:26 +02:00
2020-04-16 13:33:09 -04: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-04-16 13:33:09 -04: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-04-08 14:45:27 +00:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2020-01-15 02:18:00 +07:00
2019-02-22 17:38:45 -08:00
2020-04-16 13:33:09 -04:00
2020-01-04 20:18:28 +02:00
2019-12-30 10:42:20 +13:00
2019-03-31 11:41:05 -07:00
2020-04-16 13:33:09 -04:00
2019-12-30 10:42:20 +13:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2020-04-15 15:05:18 -04:00
2020-04-16 13:33:09 -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-01-15 02:18:00 +07:00
2020-01-15 02:18:00 +07:00
2020-04-10 19:38:21 -04:00
2020-03-26 17:20:28 +08:00
2020-01-28 17:01:48 +01:00
2020-01-28 17:01:48 +01:00
2020-04-01 12:49:15 +02:00
2020-04-10 19:38:21 -04: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-04-14 07:18:12 -04:00
2020-04-16 13:33:09 -04:00
2019-12-30 10:42:20 +13:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2020-01-08 12:35:59 +00:00
2020-04-16 13:33:09 -04:00
2020-04-10 10:12:46 -04:00
2020-03-29 11:45:46 -04:00
2019-10-29 11:30:12 +02:00
2020-03-29 11:45:46 -04:00
2020-04-10 10:12:46 -04:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2020-01-22 20:20:45 +01:00
2020-01-08 12:35:59 +00: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-04-16 13:33:09 -04:00
2020-01-23 16:35:06 -05:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2020-02-06 13:24:40 +01:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2019-11-12 14:50:44 -08:00
2019-12-30 10:42:20 +13:00
2020-04-16 13:33:09 -04:00
2020-03-10 09:47:32 -04:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2019-12-30 10:42:20 +13:00
2020-03-27 08:59:06 -04:00
2020-03-31 08:36:02 -05:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2020-01-15 02:18:00 +07:00
2019-12-06 10:02:08 +01:00
2020-01-08 12:35:59 +00:00
2019-12-30 10:42:20 +13:00
2020-04-16 13:33:09 -04:00
2020-01-15 02:18:00 +07:00
2020-04-16 13:33:09 -04:00
2020-03-19 17:26:51 +01:00
2020-01-15 02:18:00 +07:00
2020-01-15 02:18:00 +07:00
2020-01-23 16:35:08 -05:00
2020-01-23 16:35:08 -05:00
2020-04-16 13:33:09 -04:00
2020-04-16 08:51:54 -04:00
2020-03-17 14:07:58 -04:00
2020-04-07 12:53:40 -07:00
2020-04-04 11:44:39 -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
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00