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

@@ -1900,4 +1900,4 @@ struct db_query db_postgres_queries[] = {
#endif /* LIGHTNINGD_WALLET_GEN_DB_POSTGRES */
// SHA256STAMP:dbebcde72bd359ea7edaf5732c78549224c3b891e45f123696b4cfd60dd9037b
// SHA256STAMP:afab339ef2b9f164d7cf2e71a19f6c000779e6334f348ddf4720176100cf6de8