From a8ee69cdc8a5286749b3b9be8fa7dca069f9588c Mon Sep 17 00:00:00 2001 From: niftynei Date: Tue, 6 Jul 2021 12:25:24 -0500 Subject: [PATCH] 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. --- openingd/dualopend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openingd/dualopend.c b/openingd/dualopend.c index f9fac9630..b57f976ee 100644 --- a/openingd/dualopend.c +++ b/openingd/dualopend.c @@ -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.