Files
lightning/lightningd
Rusty Russell 38e8601cf6 wallet: abstract away delayed entry of wallet_payment.
For performance, we delay entering the 'wallet_payment' into the db
until we actually commit to the HTLC (when we have to touch the DB
anyway).

This opens a race where we can try to pay twice, and since it's not in
the database yet, we don't notice the duplicate.

So remove the temporary payment field from htlc_out, which was always
an uncomfortable hack, and make the wallet code abstract over the
deferred entry a little by maintaining a 'unstored_payments' list
and incorporating that in results.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-01-17 23:55:35 +01:00
..
2017-10-20 18:31:32 +02:00
2018-01-17 23:55:35 +01:00
2018-01-17 23:55:35 +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-10-26 21:01:09 +00:00