mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
reestablish_tlvs: don't lose them btw tmpctx cleanup
This commit is contained in:
@@ -3483,7 +3483,7 @@ static void do_reconnect_dance(struct state *state)
|
|||||||
struct pubkey remote_current_per_commit_point;
|
struct pubkey remote_current_per_commit_point;
|
||||||
struct tx_state *tx_state = state->tx_state;
|
struct tx_state *tx_state = state->tx_state;
|
||||||
#if EXPERIMENTAL_FEATURES
|
#if EXPERIMENTAL_FEATURES
|
||||||
struct tlv_channel_reestablish_tlvs *tlvs = tlv_channel_reestablish_tlvs_new(tmpctx);
|
struct tlv_channel_reestablish_tlvs *tlvs = tlv_channel_reestablish_tlvs_new(NULL);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* BOLT #2:
|
/* BOLT #2:
|
||||||
@@ -3534,6 +3534,9 @@ static void do_reconnect_dance(struct state *state)
|
|||||||
peer_wire_name(fromwire_peektype(msg)),
|
peer_wire_name(fromwire_peektype(msg)),
|
||||||
tal_hex(msg, msg));
|
tal_hex(msg, msg));
|
||||||
|
|
||||||
|
#if EXPERIMENTAL_FEATURES
|
||||||
|
tal_free(tlvs);
|
||||||
|
#endif /* EXPERIMENTAL_FEATURES */
|
||||||
check_channel_id(state, &cid, &state->channel_id);
|
check_channel_id(state, &cid, &state->channel_id);
|
||||||
|
|
||||||
status_debug("Got dualopend reestablish commit=%"PRIu64
|
status_debug("Got dualopend reestablish commit=%"PRIu64
|
||||||
|
|||||||
Reference in New Issue
Block a user