fanquake
19698ac6bc
Merge #17568 : wallet: fix when sufficient preset inputs and subtractFeeFromOutputs
...
eadd1304c81e0b89178e4cc7630bd31650850c85 tests: Add a test for funding with sufficient preset inputs and subtractFeeFromOutputs (Andrew Chow)
ff330badd45067cb520b1cfa1844f60a4c9f2031 Default to bnb_used = false as there are many cases where BnB is not used (Andrew Chow)
Pull request description:
#17290 introduced a bug where, when we had preset inputs that covered the amount being sent and subtractFeeFrromOutputs was being used, transaction funding would result in a `Fee exceeds maximum configured by -maxtxfee` error. This was happening because we weren't setting `bnb_used = false` when the preset inputs were used as it should have been. This resulted in a too high fee because the change would go to fees accidentally.
Apparently this particular case doesn't have a test, so I've added one as well.
ACKs for top commit:
Sjors:
ACK eadd130. I can't get this new test to fail on macOS (without this PR). It passes whether or not I compile with `--enable-debug`. It does fail on Ubuntu. Yay undefined behavior... Anyway, it's a useful test.
fanquake:
ACK eadd1304c81e0b89178e4cc7630bd31650850c85
instagibbs:
utACK eadd1304c8
Tree-SHA512: 7286c321f78666eea558cc591174630d210263594df41cab1065417510591ee514ade0e1d0cec8af09a785757da68de82592b013e8fe8d4966cec3254368706e
2019-12-01 12:23:44 -05:00
..
2019-11-06 11:56:41 -05:00
2019-11-12 14:50:44 -08:00
2019-11-27 21:27:56 +00:00
2019-11-12 15:35:26 -08:00
2019-10-15 22:56:43 +00:00
2019-11-23 09:22:02 +13:00
2019-01-26 12:45:48 -05:00
2019-11-04 14:13:52 -05:00
2019-11-15 13:40:00 -05:00
2019-10-28 13:31:33 +01:00
2019-10-15 22:56:43 +00:00
2019-11-29 23:16:08 +13:00
2019-11-24 22:53:42 +01:00
2019-11-21 10:11:06 -05:00
2019-03-31 11:41:05 -07:00
2019-11-16 10:43:37 -08:00
2019-11-21 10:18:02 -05:00
2019-10-30 16:24:02 -04:00
2019-11-26 09:55:07 -05:00
2019-12-01 12:23:44 -05:00
2019-11-05 12:59:16 -05:00
2019-10-14 13:24:54 +03:00
2019-06-14 08:30:43 +02:00
2019-10-29 11:30:12 +02:00
2019-06-02 17:15:23 +02:00
2019-02-27 16:53:44 -05:00
2018-12-29 10:15:01 +01:00
2019-10-15 22:56:43 +00:00
2019-10-15 22:56:43 +00:00
2018-11-05 17:03:11 +01:00
2019-07-24 16:33:20 +03:00
2019-11-04 13:18:27 +01:00
2018-11-04 22:46:07 -08:00
2018-11-05 17:03:11 +01:00
2019-10-16 08:56:57 -07:00
2019-09-05 13:25:11 +12:00
2019-11-04 14:39:34 -05:00
2019-10-28 13:31:33 +01:00
2019-01-30 16:26:52 -05:00
2019-10-28 13:31:33 +01:00
2019-10-30 12:35:41 +01:00
2019-10-29 15:46:45 -04:00
2019-10-15 22:56:43 +00:00
2019-04-06 12:10:55 -07:00
2019-04-06 12:10:55 -07:00
2019-05-22 15:55:50 +01:00
2019-10-16 17:06:20 -04:00
2019-03-27 18:29:48 -04:00
2019-10-16 13:06:50 -04:00
2019-11-12 17:59:52 -06:00
2019-11-01 12:06:35 +01:00
2019-09-06 22:05:33 +02:00
2019-11-01 12:06:35 +01:00
2019-10-02 08:51:12 +02:00
2018-07-27 07:15:02 -04:00
2018-07-27 07:15:02 -04:00
2018-07-27 07:15:02 -04:00
2019-07-21 21:00:31 -04:00
2019-09-25 20:56:38 +02:00
2019-01-23 16:28:27 +08:00
2019-10-15 22:56:43 +00:00
2018-07-27 07:15:02 -04:00
2019-03-26 17:38:00 -07:00
2018-07-27 07:15:02 -04:00
2019-06-06 08:00:33 +02:00
2019-08-30 11:29:21 +09:00
2019-10-10 15:47:39 -04:00
2019-04-30 10:05:54 +03:00
2019-10-15 22:56:43 +00:00
2019-10-28 10:30:51 -04:00
2019-02-22 17:38:45 -08:00
2019-02-22 17:38:45 -08:00
2019-10-28 13:41:45 +01:00
2019-04-30 10:05:54 +03:00
2018-11-05 09:25:15 -08:00
2019-03-31 11:41:05 -07:00
2019-10-28 13:41:45 +01:00
2019-10-15 22:56:43 +00:00
2019-10-25 13:11:09 +00:00
2019-10-15 22:56:43 +00:00
2019-11-21 21:05:38 +01:00
2019-10-28 10:30:51 -04:00
2019-10-15 22:56:43 +00:00
2018-07-27 07:15:02 -04:00
2019-11-20 12:43:55 +01:00
2019-11-20 12:43:55 +01:00
2018-07-27 07:15:02 -04:00
2019-11-08 18:45:38 +01:00
2019-11-08 18:45:38 +01:00
2019-11-21 21:13:08 +01:00
2019-11-21 21:13:08 +01:00
2019-01-26 09:28:48 +08:00
2019-09-30 09:41:11 +02:00
2019-11-21 19:38:39 +01:00
2019-11-21 21:13:08 +01:00
2019-11-21 21:13:08 +01:00
2019-11-21 21:13:08 +01:00
2018-07-27 07:15:02 -04:00
2019-06-02 17:15:23 +02:00
2018-07-27 07:15:02 -04:00
2019-11-20 19:06:52 -05:00
2019-02-12 11:34:57 -05:00
2019-08-15 10:05:32 -04:00
2019-08-11 11:33:27 +09:00
2019-11-05 12:38:28 -05:00
2019-10-29 15:46:45 -04:00
2019-10-29 11:30:12 +02:00
2019-11-04 11:17:20 -05:00
2019-11-05 12:38:28 -05:00
2019-06-11 17:18:16 +02:00
2019-10-15 22:56:43 +00:00
2019-11-04 04:22:53 -05:00
2019-08-08 11:35:14 +09:00
2018-07-27 07:15:02 -04:00
2019-11-04 10:42:33 -05:00
2019-11-04 10:42:33 -05:00
2019-01-30 22:44:28 +02:00
2019-10-16 08:56:57 -07:00
2019-07-09 16:20:18 -04:00
2018-07-27 07:15:02 -04:00
2018-07-27 07:15:02 -04:00
2019-10-15 22:56:43 +00:00
2019-10-02 10:39:14 -04:00
2019-10-15 22:56:43 +00:00
2019-10-15 22:56:43 +00:00
2019-11-20 12:43:55 +01:00
2019-03-04 01:30:29 -08:00
2019-11-20 12:43:55 +01:00
2019-11-18 08:56:47 -05:00
2019-11-18 08:56:40 -05:00
2019-11-20 10:54:08 -08:00
2019-11-12 14:50:44 -08:00
2019-10-15 22:56:43 +00:00
2018-07-24 20:46:23 +01:00
2019-11-12 15:35:26 -08:00
2019-02-10 17:17:32 -05:00
2019-10-15 22:56:43 +00:00
2018-07-27 11:52:18 -07:00
2019-10-15 22:56:43 +00:00
2019-10-28 13:31:33 +01:00
2019-09-25 10:56:00 -04:00
2018-08-31 16:00:38 +02:00
2019-10-15 22:56:43 +00:00
2019-05-17 13:29:04 +02:00
2019-07-24 16:33:20 +03:00
2018-07-27 07:15:02 -04:00
2019-06-13 09:30:40 -04:00
2019-07-17 15:32:38 +01:00
2019-10-15 22:56:43 +00:00
2019-10-16 08:56:57 -07:00
2019-10-15 22:56:43 +00:00
2019-11-21 21:05:38 +01:00
2019-11-09 22:08:29 -08:00
2019-06-18 15:59:53 -04:00
2019-10-15 22:56:43 +00:00
2019-10-15 22:56:43 +00:00
2019-10-15 22:56:43 +00:00
2018-11-05 09:25:15 -08:00
2019-11-20 19:06:52 -05:00
2019-11-20 19:06:52 -05:00
2019-11-21 21:05:38 +01:00
2019-11-21 21:05:38 +01:00
2018-07-27 07:15:02 -04:00
2019-08-15 11:02:55 -04:00
2019-08-15 11:02:55 -04:00
2019-08-14 15:52:52 -04:00
2018-09-23 22:55:11 +02:00
2019-10-28 10:30:51 -04:00
2019-07-24 16:33:20 +03:00
2019-10-15 22:56:43 +00:00