Repository navigation
Conversation
…thout a signing record Runs verifyBlock with the real foreignSignature and signingRecord modules: a block our key signed with no signing record logs the warning once; a block matching the signing record, or one without our signature, logs nothing. Each case uses its own temporary identity file.
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
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 adds a Jest regression for the warning introduced by #1189. It exercises
verifyBlockwith the real signing-record and warning modules. A valid block signed by this node should warn once when the local signing record is missing. A matching record and a block signed only by other nodes should both stay quiet. The draft targets the branch of #1189.Verification
npx jest --maxWorkers=1 src/libs/blockchain/validation/verifyBlock.ownKeyWarning.test.tspassed all three cases atf847eccd3ec14c58a9f78d08a33174eb021f451f. Restoring the implementation from before fix(identity): warn when our key signed a block and no signing record exists #1189 made only the missing-record case fail.