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

refactor(genesis): update data import process with new approach #2585

Merged
merged 20 commits into from
Sep 9, 2024

Conversation

popcnt1
Copy link
Collaborator

@popcnt1 popcnt1 commented Sep 5, 2024

  1. updates struct (inscription, inscription_store etc)
  2. import utxo/ord without init genesis first and updating startup_info
  3. fix genesis_config for main net
  4. handle burned inscription in data import process
  5. genesis startup method has been determined
  6. update readme

Introduce serde_as for better serialization of InscriptionSource and add InscriptionStats handling. This update allows loading ord stats from a file and improves inscription data integrity.
1. rocksdb no compression, no stats
2. genesis_config using 859000 starts with 0 bitcoin_reorg_block_count
Implemented a new command-line flag for ord_stats in the genesis command. This allows users to specify the path to the ord stats file directly.
Switch from `from_reader` to `BufReader` for file reading and use `from_str` to better catch errors in the JSON format. Added error messages for invalid outpoints.
Changed bitcoin_reorg_block_count from 0 to 3 in genesis config.
Copy link

vercel bot commented Sep 5, 2024

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

Name Status Preview Comments Updated (UTC)
rooch-portal 🛑 Canceled (Inspect) Sep 9, 2024 2:02am
rooch-portal-v2.1 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 9, 2024 2:02am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
rooch ⬜️ Ignored (Inspect) Visit Preview Sep 9, 2024 2:02am

Implement a new method to clean sequencer info in rooch-store. Adjust `clean_startup` to use this new method and remove unused code blocks.
Add a new constant for the charm burned flag and update the logic to handle charm burning by setting appropriate owner and flag. This ensures the proper state management when charms are burned.
Added double quotes to curl commands in comments. This ensures compatibility and prevents errors when executing these commands.
Integrated re-genesis modes (export, remove, restore) into roochDB command. Simplified function names for clarity and moved DB initialization to a separate function.
Introduces GenesisOrdCommand for importing BTC ordinals without init genesis and updating startup_info.
Update the genesis block parameters including reorg count and block address. This ensures alignment with the latest network configurations and enhances stability.
1. import data from source without updating startup info
2. removed the `ImportCommand` and associated legacy code from the statedb module.
3. simplified the state migration logic to improve maintainability and reduce redundancy
popcnt1 and others added 2 commits September 9, 2024 09:58
Streamlined the README instructions for the statedb tool and added a separate guide for BTC source data preparation.

This enhancement clarifies steps for setting up the statedb tool and provides detailed instructions on generating necessary BTC data.
@popcnt1 popcnt1 marked this pull request as ready for review September 9, 2024 01:59
@popcnt1 popcnt1 changed the title refactor(genesis): update data import process with new struct refactor(genesis): update data import process with new approach Sep 9, 2024
@jolestar jolestar merged commit 51409e2 into rooch-network:main Sep 9, 2024
8 checks passed
@popcnt1 popcnt1 deleted the refactor/genesis branch September 9, 2024 06:39
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