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

Commits on Sep 2, 2024

  1. feat(statedb): enhance inscriptions with serde and stats support

    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.
    popcnt1 committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    caddc70 View commit details
    Browse the repository at this point in the history
  2. for local genesis import

    1. rocksdb no compression, no stats
    2. genesis_config using 859000 starts with 0 bitcoin_reorg_block_count
    popcnt1 committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    abc2b8f View commit details
    Browse the repository at this point in the history
  3. feat(rooch-da): add ord_stats flag to genesis command

    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.
    popcnt1 committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    9f3f282 View commit details
    Browse the repository at this point in the history
  4. improve error handling for inscription file reading

    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.
    popcnt1 committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    2ea613f View commit details
    Browse the repository at this point in the history
  5. adjust bitcoin reorg block count

    Changed bitcoin_reorg_block_count from 0 to 3 in genesis config.
    popcnt1 committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    e26c62c View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2024

  1. Configuration menu
    Copy the full SHA
    cdf293d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9b427cf View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6fb4ab1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f7777c0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    270d07d View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2024

  1. feat(rooch-store): add sequencer info cleanup method

    Implement a new method to clean sequencer info in rooch-store. Adjust `clean_startup` to use this new method and remove unused code blocks.
    popcnt1 committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    59de179 View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2024

  1. feat(statedb/genesis): add charm burned flag handling

    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.
    popcnt1 committed Sep 8, 2024
    Configuration menu
    Copy the full SHA
    ddbe1b5 View commit details
    Browse the repository at this point in the history
  2. chore(rooch-types/genesis_config): update curl commands with quotes

    Added double quotes to curl commands in comments. This ensures compatibility and prevents errors when executing these commands.
    popcnt1 committed Sep 8, 2024
    Configuration menu
    Copy the full SHA
    dd29749 View commit details
    Browse the repository at this point in the history
  3. feat(rooch): add re-genesis modes and refactor related functions

    Integrated re-genesis modes (export, remove, restore) into roochDB command. Simplified function names for clarity and moved DB initialization to a separate function.
    popcnt1 committed Sep 8, 2024
    Configuration menu
    Copy the full SHA
    3495f7a View commit details
    Browse the repository at this point in the history
  4. feat(rooch): add GenesisOrdCommand

    Introduces GenesisOrdCommand for importing BTC ordinals without init genesis and updating startup_info.
    popcnt1 committed Sep 8, 2024
    Configuration menu
    Copy the full SHA
    72cebad View commit details
    Browse the repository at this point in the history
  5. fix(rooch-types): update genesis block parameters

    Update the genesis block parameters including reorg count and block address. This ensures alignment with the latest network configurations and enhances stability.
    popcnt1 committed Sep 8, 2024
    Configuration menu
    Copy the full SHA
    c2f201d View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2024

  1. refactor(statedb): genesis import without updating startup_info

    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 committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    38d6445 View commit details
    Browse the repository at this point in the history
  2. restore tmp changes

    popcnt1 committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    c88ff67 View commit details
    Browse the repository at this point in the history
  3. docs(statedb): update README and add BTC source data guide

    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 committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    5171f76 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2810c3d View commit details
    Browse the repository at this point in the history