Rusty Russell
7e062fd637
onchaind: don't assert() when htlc fulfilled twice.
...
In the normal (peer-to-peer) path, the HTLC state prevents us fulfilling
twice, but this goes out the window with onchain HTLCs.
The actual assert which caught it was lightningd/pay.c:70 (payment_succeeded)
in the test_htlc_in_timeout test, after the next commit.
So add an assert earlier (in fulfill_our_htlc_out) and check in the
one caller where it can be true.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2018-01-02 13:21:25 +01:00
..
2017-12-28 16:09:24 +01:00
2017-10-20 18:31:32 +02:00
2017-12-21 14:33:27 +01:00
2017-12-21 14:33:27 +01:00
2017-12-20 12:56:15 +01:00
2017-12-20 12:56:15 +01:00
2017-12-21 14:33:27 +01:00
2017-12-21 14:33:27 +01:00
2017-12-20 12:43:10 +01:00
2017-12-20 12:43:10 +01:00
2017-10-20 18:31:32 +02:00
2017-10-26 21:01:09 +00:00
2017-10-26 21:01:09 +00:00
2017-12-03 17:06:13 +01:00
2017-06-27 10:25:53 +09:30
2017-12-21 09:13:28 +01:00
2017-12-21 09:13:28 +01:00
2018-01-02 00:36:16 +00:00
2018-01-02 00:36:16 +00:00
2017-12-21 11:05:38 +00:00
2017-12-21 11:05:38 +00:00
2018-01-02 01:31:04 +00:00
2017-12-20 12:43:10 +01:00
2017-12-20 12:43:10 +01:00
2017-12-20 12:43:10 +01:00
2017-12-20 12:43:10 +01:00
2017-12-20 12:43:10 +01:00
2017-12-21 09:56:20 +00:00
2017-12-21 09:56:20 +00:00
2017-08-29 17:54:14 +02:00
2017-08-29 17:54:14 +02:00
2017-12-28 16:09:24 +01:00
2017-10-26 21:01:09 +00:00
2017-12-20 12:43:10 +01:00
2017-06-23 09:29:42 +09:30
2018-01-02 01:18:42 +00:00
2017-12-21 14:33:27 +01:00
2018-01-02 13:21:25 +01:00
2017-11-23 23:45:28 +00:00
2017-10-20 18:31:32 +02:00
2017-12-17 02:44:20 +00:00
2017-11-06 10:24:34 +01:00
2017-11-29 14:39:12 +01:00
2017-11-29 14:39:12 +01:00
2017-12-21 11:05:38 +00:00
2017-12-21 11:05:38 +00:00