-
Notifications
You must be signed in to change notification settings - Fork 86
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Collaborator
popcnt1
commented
Sep 5, 2024
•
edited
Loading
edited
- updates struct (inscription, inscription_store etc)
- import utxo/ord without init genesis first and updating startup_info
- fix genesis_config for main net
- handle burned inscription in data import process
- genesis startup method has been determined
- 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.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
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
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
requested review from
jolestar,
baichuan3,
wow-sven and
pause125
as code owners
September 9, 2024 01:59
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
approved these changes
Sep 9, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.