Skip to content

Conversation

@cjpatton
Copy link
Contributor

If the number of landmarks is greater than the max, then drain the oldest landmarks from the deque. This makes the code more robust in case we ever decode a LandmarkSequence with a different max_landmarks than when it was encoded.

@cjpatton cjpatton added the mtc Merkle Tree Certificates label Oct 20, 2025
If the number of landmarks is greater than the max, then drain the
oldest landmarks from the deque. This makes the code more robust in case
we ever decode a `LandmarkSequence` with a different `max_landmarks`
than when it was encoded.
@cjpatton cjpatton force-pushed the cjpatton/update-landmarks branch from 13517a6 to 17aa0ea Compare October 20, 2025 23:02
@cjpatton cjpatton requested review from bwesterb and rozbb October 20, 2025 23:03
@cjpatton cjpatton merged commit 6f8aef3 into main Oct 21, 2025
1 check passed
@cjpatton cjpatton deleted the cjpatton/update-landmarks branch October 21, 2025 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mtc Merkle Tree Certificates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants