df-rbf: order inflights by funding_feerate

When we re-populate from disk, we need to know what order to recreate the
inflights list in.

Fixes #4511
This commit is contained in:
niftynei
2021-05-07 16:39:19 -05:00
committed by Rusty Russell
parent 8ae9f6ac9e
commit 82fa3fa2ef
5 changed files with 106 additions and 106 deletions

View File

@@ -1049,7 +1049,8 @@ static bool wallet_channel_load_inflights(struct wallet *w,
", last_sig" // 7
", funding_tx_remote_sigs_received" //8
" FROM channel_funding_inflights"
" WHERE channel_id = ?")); // ?0
" WHERE channel_id = ?" // ?0
" ORDER BY funding_feerate"));
db_bind_u64(stmt, 0, chan->dbid);
db_query_prepared(stmt);