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

Regenesis supports migration of API-related tables #1572

Closed
xgreenx opened this issue Dec 21, 2023 · 3 comments
Closed

Regenesis supports migration of API-related tables #1572

xgreenx opened this issue Dec 21, 2023 · 3 comments

Comments

@xgreenx
Copy link
Collaborator

xgreenx commented Dec 21, 2023

The first 4 tables can be derived from the data available in the on-chain database, so we don't need to serialize them into the snapshot.
However, we need to write code and workers who will initialise these tables based on the on-chain data.

The data from the last 2 tables is not recoverable, so we need to serialise them into the snapshot file.
These tables should be migrate in the same way what is used for on-chain migration.

pub enum Column {
    /// The column of the table that stores `true` if `owner` owns `Coin` with `coin_id`
    OwnedCoins = 1,
    /// The column of the table of all `owner`'s transactions
    TransactionsByOwnerBlockIdx = 3,
    /// The column of the table that stores `true` if `owner` owns `Message` with `message_id`
    OwnedMessageIds = 4,
    /// See [`blocks::FuelBlockIdsToHeights`]
    FuelBlockIdsToHeights = 6,

    /// Transaction id to current status
    TransactionStatus = 2,
    /// The column of the table that stores statistic about the blockchain.
    Statistic = 5,
}
@Dentosal
Copy link
Member

Dentosal commented Apr 1, 2024

Is there anything more to do after #1786?

@xgreenx
Copy link
Collaborator Author

xgreenx commented Apr 1, 2024

Yep, #1790

@xgreenx
Copy link
Collaborator Author

xgreenx commented Apr 8, 2024

We will migrate remaining tables in the #1790. Closing this as done=)

@xgreenx xgreenx closed this as completed Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants