-
Notifications
You must be signed in to change notification settings - Fork 43
perf(dapi): fetch only specific unconfirmed transaction #2552
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
base: v2.0-dev
Are you sure you want to change the base?
Conversation
WalkthroughThe code for detecting whether a state transition already exists in the mempool was refactored. Instead of retrieving a list of unconfirmed transactions and searching for the relevant state transition, the new approach queries directly for an unconfirmed transaction by its hash using a specific RPC method. Error handling was updated to ignore not-found errors and throw an error if the transaction is found. The corresponding unit test was updated to mock the new RPC method and adjust the expected response structure. Additionally, the default Docker image version for the tenderdash service was updated, and a new configuration migration was added to apply this image version across existing configs. Changes
Possibly related PRs
Suggested reviewers
Poem
Tip ⚡️ Faster reviews with caching
Enjoy the performance boost—your workflow just got faster. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (3)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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 (
|
…nto pref/dap/unconfirmed-tx-check
e534111
to
2c8334d
Compare
Issue being fixed or feature implemented
If a state transition broadcast failed, we check the mempool to provide a detailed error. Currently, we fetch the entire mempool to ensure the transaction is in there.
What was done?
How Has This Been Tested?
Updated unit test
Breaking Changes
None
Checklist:
For repository code-owners and collaborators only
Summary by CodeRabbit
Bug Fixes
Tests
Chores