rbf: update the channel's funding_txid to match what's mined

If the peer is offline when we see the funding txid, we don't actually
update the channel's info. Here, we move it up to where the scid is set,
so that we always update the channel's funding_txid to the correct
(mined) information.
This commit is contained in:
niftynei
2021-05-20 16:50:42 -05:00
committed by Rusty Russell
parent e45b09358a
commit 062bc12813
9 changed files with 98 additions and 44 deletions

View File

@@ -25,4 +25,8 @@ void channel_unsaved_close_conn(struct channel *channel, const char *why);
void json_add_unsaved_channel(struct json_stream *response,
const struct channel *channel);
void channel_update_reserve(struct channel *channel,
struct channel_config *their_config,
struct amount_sat funding_total);
#endif /* LIGHTNING_LIGHTNINGD_DUAL_OPEN_CONTROL_H */