Files
lightning/lightningd
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-10-26 21:01:09 +00:00
2017-10-26 21:01:09 +00: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-12-28 16:09:24 +01:00
2017-10-26 21:01:09 +00:00
2017-12-20 12:43:10 +01:00