Skip to content

Conversation

@samholmes
Copy link
Contributor

@samholmes samholmes commented Oct 22, 2025

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Description

none

Note

Adds a 10s retry delay when re-queuing failed transaction updates and manages pending timeouts that are cleared on engine stop.

  • UTXO engine (src/common/utxobased/engine/UtxoEngineProcessor.ts):
    • Introduces pendingTimeouts set and clears all on stop().
    • Extends CommonParams with pendingTimeouts and adds addPendingTimeout() utility.
    • In processCheckTransactionConfirmation error path, re-queues transactionUpdateCache[txId] after a 10s delay to prevent thrashing.
  • CHANGELOG:
    • Notes fix: added retry delay to address dropped transaction thrashing.

Written by Cursor Bugbot for commit 6cc3bf1. This will update automatically on new commits. Configure here.


cursor[bot]

This comment was marked as outdated.

common.taskCache.transactionUpdateCache[txId] = {
processing: false
}
}, 10000)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a legit issue. The engine needs to keep track of pending setTimeouts and kill them on killEngine

common.taskCache.transactionUpdateCache[txId] = {
processing: false
}
}, 10000)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a fixup but not tested. give it a try

@samholmes
Copy link
Contributor Author

I tested with my additional fixup

@samholmes samholmes force-pushed the sam/dropped-tx-thrashing branch from 6c8c6a1 to 6cc3bf1 Compare November 3, 2025 21:34
@samholmes samholmes enabled auto-merge November 3, 2025 21:34
@samholmes samholmes merged commit f115253 into master Nov 3, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants