From 9f8f0ccec9744714615d97a0f51c3083182b2948 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Fri, 9 Feb 2018 15:44:55 +0100 Subject: [PATCH] peer: Store htlc_sigs when they are updated Signed-off-by: Christian Decker --- lightningd/peer_htlcs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lightningd/peer_htlcs.c b/lightningd/peer_htlcs.c index d1634528c..e0c7100c9 100644 --- a/lightningd/peer_htlcs.c +++ b/lightningd/peer_htlcs.c @@ -1147,9 +1147,10 @@ void peer_got_commitsig(struct peer *peer, const u8 *msg) wallet_channel_save(peer->ld->wallet, peer->channel); - /* FIXME: Put these straight in the db! */ tal_free(peer->last_htlc_sigs); peer->last_htlc_sigs = tal_steal(peer, htlc_sigs); + wallet_htlc_sigs_save(peer->ld->wallet, peer->channel->id, + peer->last_htlc_sigs); /* Tell it we've committed, and to go ahead with revoke. */ msg = towire_channel_got_commitsig_reply(msg);