mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-17 19:03:42 +01:00
df-rbf: update rejection criteria for tx_sigs
since we might be in the middle of an RBF, update our checks to be more robust
This commit is contained in:
parent
dfdf9259d7
commit
ad0f92aef1
@ -850,6 +850,26 @@ static void handle_tx_sigs(struct state *state, const u8 *msg)
|
||||
return;
|
||||
}
|
||||
|
||||
if (!tx_state->psbt)
|
||||
open_err_warn(state,
|
||||
"tx_signatures for %s received,"
|
||||
" open negotiation still in progress.",
|
||||
type_to_string(tmpctx,
|
||||
struct bitcoin_txid,
|
||||
&txid));
|
||||
|
||||
|
||||
if (!bitcoin_txid_eq(&tx_state->funding_txid, &txid))
|
||||
open_err_warn(state,
|
||||
"tx_signatures for %s received,"
|
||||
"working on funding_txid %s",
|
||||
type_to_string(tmpctx,
|
||||
struct bitcoin_txid,
|
||||
&txid),
|
||||
type_to_string(tmpctx,
|
||||
struct bitcoin_txid,
|
||||
&tx_state->funding_txid));
|
||||
|
||||
/* We put the PSBT + sigs all together */
|
||||
for (size_t i = 0; i < tx_state->psbt->num_inputs; i++) {
|
||||
struct wally_psbt_input *in =
|
||||
|
Loading…
Reference in New Issue
Block a user