-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(mempool): provide finalize result for invalid transactions #1307
fix(mempool): provide finalize result for invalid transactions #1307
Conversation
WalkthroughThis update refines logging and transaction error handling. In the mempool service, the log message now indicates conditional unsubscription and the transaction handler replaces a direct Changes
Sequence Diagram(s)sequenceDiagram
participant MS as MempoolService
participant TR as TransactionRecord
MS->>TR: handle_new_transaction(invalidTx)
Note right of TR: Replace abort() with abort_and_finalize(reason)
TR->>TR: call abort(reason)
TR->>TR: Update execution_result, final_decision, and finalized_time
TR-->>MS: Return updated TransactionRecord
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
⏰ Context from checks skipped due to timeout of 90000ms (5)
🔇 Additional comments (3)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
* development: fix(mempool): provide finalize result for invalid transactions (tari-project#1307) fix(wallet): correct version for vaults in substates table (tari-project#1308) fix(indexer): list_substates can also list nfts (tari-project#1302) chore(bindings): update package.lock (tari-project#1306)
Description
fix(mempool): provide finalize result for invalid transactions
Motivation and Context
If an invalid transaction is submitted to the mempool, the final execution result is not set. This causes the queried result of the transaction to still be pending. This PR creates an execution result for the invalid transaction.
How Has This Been Tested?
Submitting a transaction that calls a non-existant template.
What process can a PR reviewer use to test or verify this change?
As above
Breaking Changes
Summary by CodeRabbit