mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-15 20:09:18 +01:00
dualopend: hold onto open_tlv for longer than the tmpctx persists
with channel leases, we use the open_tlv data after a round of talking to the peer (which clears out the tmpctx). It'll get cleaned up when this peer opens/fails.
This commit is contained in:
parent
d4408a9ae0
commit
a8ee69cdc8
1 changed files with 1 additions and 1 deletions
|
@ -2633,7 +2633,7 @@ static void opener_start(struct state *state, u8 *msg)
|
|||
|
||||
state->our_role = TX_INITIATOR;
|
||||
tx_state->tx_locktime = tx_state->psbt->tx->locktime;
|
||||
open_tlv = tlv_opening_tlvs_new(tmpctx);
|
||||
open_tlv = tlv_opening_tlvs_new(state);
|
||||
|
||||
/* BOLT-* #2
|
||||
* If the peer's revocation basepoint is unknown (e.g.
|
||||
|
|
Loading…
Add table
Reference in a new issue