Browse Source
This addresses a performance regression introduced by
6ceb375650
. We were storing it in an
otherwise empty DB transaction, which means that DB transaction was no
longer a no-op. Now we defer storing until we need to store the
corresponding HTLC anyway, so we can just piggyback on top of that
transaction.
This is also more consistent since we'd be forgetting the payment
anyway if we restart between adding the HTLC and committing to it.
Signed-off-by: Christian Decker <decker.christian@gmail.com>
ppa-0.6.1
committed by
Rusty Russell
5 changed files with 39 additions and 24 deletions
Loading…
Reference in new issue