mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 15:44:21 +01:00
db: store claimed per_commitment_point from option_data_loss_protect.
This means we don't try to unilaterally close after a restart, *and* we can tell onchaind to try to use the point to recover funds when the peer unilaterally closes. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
1a4084442b
commit
a5ecc95c42
@@ -202,7 +202,8 @@ wallet_commit_channel(struct lightningd *ld,
|
||||
/* We are connected */
|
||||
true,
|
||||
&uc->local_basepoints,
|
||||
&uc->local_funding_pubkey);
|
||||
&uc->local_funding_pubkey,
|
||||
NULL);
|
||||
|
||||
/* Now we finally put it in the database. */
|
||||
wallet_channel_insert(ld->wallet, channel);
|
||||
|
||||
Reference in New Issue
Block a user