Skip to content
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

feat(rooch-db): add command to fetch transaction by order #3308

Merged
merged 5 commits into from
Feb 12, 2025

Conversation

popcnt1
Copy link
Collaborator

@popcnt1 popcnt1 commented Feb 12, 2025

Summary

  1. Introduce GetTxByOrderCommand to fetch a LedgerTransaction based on its order. Integrated the new command into the database commands module and CLI.
  2. handle null state roots when parsing expected roots file
  3. docs improvements

Introduce `GetTxByOrderCommand` to fetch a `LedgerTransaction` based on its order. Integrated the new command into the database commands module and CLI.
Simplify JSON serialization in DB command responses to improve efficiency. Add "sync" as a valid execution mode option in the "exec" command for better flexibility.
Fixes a bug where null state roots caused errors during parsing. Now null state roots are treated as H256::zero(), ensuring robust handling of input data.
Update the README to indicate the use of `get_state_interval.sh` for generating `tx_order:state_root:accumulator_root` list files. Clarified instructions for scenarios without `--mode sync`.
Copy link

vercel bot commented Feb 12, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
onchain-ai-chat ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 12, 2025 1:48pm
rooch-portal-v2.1 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 12, 2025 1:48pm
test-portal 🛑 Canceled (Inspect) Feb 12, 2025 1:48pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
rooch ⬜️ Ignored (Inspect) Visit Preview Feb 12, 2025 1:48pm

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.

1 participant