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(ICP-Ledger): FI-1442: migrate ledger blocks to stable structures #3836

Open
wants to merge 72 commits into
base: master
Choose a base branch
from

Conversation

maciejdfinity
Copy link
Contributor

@maciejdfinity maciejdfinity commented Feb 6, 2025

This version migrates blocks stored in the ledger to stable structures. This allows the ledger to store more blocks and reduces the need for archiving. The archiving is still performed but its parameters (e.g. trigger_threshold) can be adjusted. The migration is performed using timers, see #3314 description for more details.

@github-actions github-actions bot added the feat label Feb 6, 2025
Base automatically changed from maciej-icrc-v5 to master February 27, 2025 11:03
@maciejdfinity maciejdfinity marked this pull request as ready for review February 27, 2025 13:30
@maciejdfinity maciejdfinity requested a review from a team as a code owner February 27, 2025 13:30
Copy link
Member

@mbjorkqvist mbjorkqvist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @maciejdfinity!

Copy link
Contributor

@mraszyk mraszyk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few comments/suggestions: nothing major => all non-blocking.

/// Stores a chain of transactions with their metadata
#[derive(Debug, Deserialize, Serialize)]
#[serde(bound = "BD: Serialize, for<'a> BD: Deserialize<'a>")]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since I don't need the custom bounds for BD anymore I removed this line completely. Before the ICRC V5 PR, this line used to be #[serde(bound = "")]: 0d96610#diff-1122f1a694a6ec31534fa34a1f861a31aeaaf0cdcc8d01406dd39a480f2e7bb1L16 @mbjorkqvist @mraszyk do you know if I need the empty bounds here?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't expect empty bounds to make a difference, but I don't know with certainty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants