Fix inbound on-chain payment txid not updating after RBF replacement#826
Fix inbound on-chain payment txid not updating after RBF replacement#826febyeji wants to merge 2 commits intolightningdevkit:mainfrom
Conversation
|
I've assigned @tnull as a reviewer! |
|
cc @Camillarhi |
Camillarhi
left a comment
There was a problem hiding this comment.
Thanks for this. The fix looks good for the missed-intermediate-bump case, but I think both find_payment_by_txid and find_payment_by_conflicting_tx are reaching into payment_store when pending_payment_store should be enough. Anything still replaceable via RBF hasn't hit ANTI_REORG_DELAY yet, so it's still in pending_payment_store. Payments that have left it are already confirmed and can't be replaced anyway.
|
Thanks for the review! I've addressed all three points in |
|
Before we proceed, could you point us to the specific CI run where the |
|
🔔 1st Reminder Hey @tnull! This PR has been waiting for your review. |
|
@Camillarhi The I think this PR can be closed. Thank you very much for the review feedback. |
Found via CI failure in the
onchain_fee_bump_rbftest:onchain_fee_bump_rbfto fail intermittently:Fix
find_payment_by_txidnow also checks the payment_store (not justpending_payment_store) for onchain payments matching the target txid.find_payment_by_conflicting_txmethod: if a transaction shares inputs with an existing payment's transaction, it must be an RBF replacement. This works regardless of whether intermediate replacements were observed.