Skip to content

fix: track block in MMR#2353

Merged
bobbinth merged 5 commits intomainfrom
santiagopittella-fix-block-tracing
Jan 27, 2026
Merged

fix: track block in MMR#2353
bobbinth merged 5 commits intomainfrom
santiagopittella-fix-block-tracing

Conversation

@SantiagoPittella
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@igamigo igamigo left a comment

Choose a reason for hiding this comment

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

LGTM! Would be cool to test this with the node and validate that the inputs don't grow linearly

}

#[test]
fn prune_to_removes_tracked_blocks() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not sure if it's simple enough but could also check that the MMR's internal node count decreases when pruning.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I added assert!(!blockchain.mmr().is_tracked(i as usize)); checks

Copy link
Contributor

@PhilippGackstatter PhilippGackstatter left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@igamigo
Copy link
Collaborator

igamigo commented Jan 27, 2026

Should the Cargo.toml version be bumped as well?

@igamigo igamigo linked an issue Jan 27, 2026 that may be closed by this pull request
@SantiagoPittella
Copy link
Collaborator Author

Should the Cargo.toml version be bumped as well?

Oh yes, on it.

@SantiagoPittella
Copy link
Collaborator Author

@bobbinth we should make a new release after this PR.

@SantiagoPittella
Copy link
Collaborator Author

Apparently in #2338 the changelog conflicts weren't fixed properly and now reflects changes from the 0.14 version (without the actual implementation). I fixed it in the last commit.

Copy link
Contributor

@bobbinth bobbinth left a comment

Choose a reason for hiding this comment

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

Looks good! Thank you!

@bobbinth bobbinth merged commit 8e3e8da into main Jan 27, 2026
17 checks passed
@bobbinth bobbinth deleted the santiagopittella-fix-block-tracing branch January 27, 2026 18:25
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.

Ntx transactions eventually overflow gRPC size limit

5 participants