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(da): add exec cmd for da chunks execution and verification #3054

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

popcnt1
Copy link
Collaborator

@popcnt1 popcnt1 commented Dec 16, 2024

Summary

  1. enhance DA commands with new namespace and exec logic: Added full hash output for namespace command and refined the exec command with optional executor handling and improved transaction verification logic. Updated documentation with new usage instructions and examples.
  2. use loaded genesis instance for consistency as DA default namespace
  3. add exec cmd for da chunks execution and verification
  4. feat(statedb): make export path optional in re-genesis command

Added full hash output for namespace command and refined the exec command with optional executor handling and improved transaction verification logic. Updated documentation with new usage instructions and examples.
Ensure the same `genesis` instance is used for encoding and initialization. This prevents potential inconsistencies and aligns with the expected behavior of the `RoochGenesis` object.
Refactored the `export_path` field to be optional in the `re-genesis` command. Updated related logic to handle `Option<PathBuf>` for better flexibility and error handling.
Reordered transaction handling to ensure proper execution. Moved `handle_tx_output` invocation to follow the sequencer save operation for improved logic flow.
Added a detailed execution and verification process for transactions, including parallel producer-consumer handling. Integrated support for Bitcoin RPC client, extended `ExecCommand` functionality, and updated dependencies with `coerce`.
Add logging to track execution time and average processing time for every 10,000 transactions. This helps monitor performance and improve debugging during transaction processing.
Refactor to separate transaction storage (`MoveOSStore`) from the executor, enabling better modularity and reuse: avoiding executor get execution info blocking execution

 Improves transaction handling by introducing `ExecMsg`
Enhances error handling in `ExecInner::run` by refining error contexts for producer and consumer results. Removes unnecessary logs and ensures proper cleanup of resources for better reliability.
…ockBody when produce

Introduce atomic counters to track progress and log execution stats. This includes tracking completed executions and verified transaction order, with periodic logging to enhance observability.

Producer fetch l1 block directly, avoiding blocking fetch in Consumer
Add tracking for produced transactions via an AtomicU64 counter. Update README with steps to download segments using `getda` and clarify unpacking instructions.
Updated the logging condition to log every 10,000th transaction. This improves visibility and avoids unnecessary output for smaller transaction counts.

fix attempt to subtract with overflow by add 1 after fetch_add
Added detailed instructions and example command for executing a transaction list in Rooch DA, including expected output log for successful execution. This enhances clarity for users handling transaction execution.
Copy link

vercel bot commented Dec 16, 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 16, 2024 6:10am
test-portal ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 16, 2024 6:10am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
rooch ⬜️ Ignored (Inspect) Visit Preview Dec 16, 2024 6:10am

Corrected the average transaction cost calculation to use floating-point precision, ensuring more accurate and readable logging output. This enhances the clarity of performance metrics for transaction execution.
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.

2 participants