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:
niftynei 2021-07-06 12:25:24 -05:00 committed by neil saitug
parent d4408a9ae0
commit a8ee69cdc8
1 changed files with 1 additions and 1 deletions

View File

@ -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.