Skip to content

fix: correct spork signer guard#4

Closed
thepastaclaw wants to merge 2 commits intoknst:refactor-spork-net-processing-v2from
thepastaclaw:tracker-1145-fix-spork-signer-guard
Closed

fix: correct spork signer guard#4
thepastaclaw wants to merge 2 commits intoknst:refactor-spork-net-processing-v2from
thepastaclaw:tracker-1145-fix-spork-signer-guard

Conversation

@thepastaclaw
Copy link
Copy Markdown

Summary

Fixes the inverted signer guard reported on dashpay#7303.

The current branch returns false when GetSignerKeyID() succeeds, then calls
.value() when it failed. This changes the guard to reject only missing signer
IDs before dereferencing the optional.

Validation

  • git diff --check knst/refactor-spork-net-processing-v2...HEAD
  • Inspected src/spork.cpp diff and surrounding CSporkManager::ProcessSpork()
    flow
  • Not run: src/test/test_dash --run_test=spork_tests (src/test/test_dash is
    not built in this worktree)

@thepastaclaw
Copy link
Copy Markdown
Author

@coderabbitai review

@knst knst force-pushed the refactor-spork-net-processing-v2 branch from 69f09d1 to 6a4ee52 Compare May 5, 2026 13:30
@knst
Copy link
Copy Markdown
Owner

knst commented May 5, 2026

fixed in-place by force-push

@knst knst closed this May 5, 2026
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.

2 participants