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(db): add command to dump transaction state roots #3071

Merged
merged 4 commits into from
Dec 19, 2024

Conversation

popcnt1
Copy link
Collaborator

@popcnt1 popcnt1 commented Dec 19, 2024

Summary

Introduce DumpTxRootCommand to export transaction orders and state roots to an output file. This enhances database debugging and transaction analysis capabilities.

popcnt1 added 3 commits December 20, 2024 00:04
Add `find_last_true` function for efficient binary search of the last element satisfying a predicate in sorted arrays. Includes a comprehensive test suite to verify edge cases and behavior.
Updated TxOrderHashBlock to TxDAIndex for better clarity and consistency in DA commands. Refactored corresponding methods, files, and struct names while preserving functionality.
Introduce `DumpTxRootCommand` to export transaction orders and state roots to an output file. This enhances database debugging and transaction analysis capabilities.
Copy link

vercel bot commented Dec 19, 2024

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

Name Status Preview Comments Updated (UTC)
rooch-portal-v2.1 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2024 4:12pm
test-portal ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2024 4:12pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
rooch ⬜️ Ignored (Inspect) Visit Preview Dec 19, 2024 4:12pm

@popcnt1 popcnt1 merged commit 50f6615 into rooch-network:main Dec 19, 2024
5 of 9 checks passed
@popcnt1 popcnt1 deleted the feat/db/dump-tx-order branch December 19, 2024 16:07
steelgeek091 pushed a commit to steelgeek091/rooch that referenced this pull request Dec 22, 2024
…3071)

* feat(rooch-common): add binary search utility for last true

Add `find_last_true` function for efficient binary search of the last element satisfying a predicate in sorted arrays. Includes a comprehensive test suite to verify edge cases and behavior.

* refactor(rooch-da): replace TxOrderHashBlock with TxDAIndex

Updated TxOrderHashBlock to TxDAIndex for better clarity and consistency in DA commands. Refactored corresponding methods, files, and struct names while preserving functionality.

* feat(db): add command to dump transaction state roots

Introduce `DumpTxRootCommand` to export transaction orders and state roots to an output file. This enhances database debugging and transaction analysis capabilities.
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