Repository navigation
Conversation
mergePeerlist treated addPeer's [added, reason] tuple as a boolean, so every peer in a block's peerlist was reported as merged, refused or not. Destructure it like the other callers do. Adds a test for it to the consensus CI run.
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.
Tip: disable this comment in your organization's Code Review settings.
Contributor
|
ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing |
Contributor
[Medium impact] This PR appears safe to merge.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This carries the last #1094 commit, which was pushed to that branch a few minutes after #1094 merged and so never reached
stabilisation.Change
mergePeerlistinSync.tstreatedaddPeer's[added, reason]tuple as a boolean. A non-empty array is always truthy, so every peer in a block's peerlist was reported as merged, including refused ones. That list also drives the L2PS participation exchange. It now unpacks the tuple, asbroadcastManager.tsdoes since #1094.Tests
src/libs/blockchain/routines/Sync.mergePeerlist.test.ts: it fails with theSync.tschange reverted and passes with it.SUITE_FILESinscripts/test-consensus.sh, next to the list fix(launch): lost commit-lock file, go/no-go validator set and caps, double-sign alerts #1095 introduced. The cherry-pick conflicted there; I kept fix(launch): lost commit-lock file, go/no-go validator set and caps, double-sign alerts #1095's list and added this one line.bash scripts/test-consensus.shat this head: 68 files, 0 failed.bun run type-checkpasses.Summary by CodeRabbit