Skip to content

Do not prematurely issue a response if still waiting on block validate response#6850

Merged
jacinta-stacks merged 3 commits intostacks-network:developfrom
jacinta-stacks:bugfix/wait-for-validation-before-issuing-signature
Feb 6, 2026
Merged

Do not prematurely issue a response if still waiting on block validate response#6850
jacinta-stacks merged 3 commits intostacks-network:developfrom
jacinta-stacks:bugfix/wait-for-validation-before-issuing-signature

Conversation

@jacinta-stacks
Copy link
Contributor

When investigating GSM:
Signer received block proposal S
Submitted S to node for validation
While validating, signer received >70% pre-commits over block S.
Signer immediately issued BlockAccept across S
Signer received block validate Ok, checked against local state: saw reorg of same block-> issued a BlockRejection

Signer should not prematurely issue the original Accept as the node could have responded with a BlockValidateReject.

Fixed and added a test.

@jacinta-stacks jacinta-stacks marked this pull request as draft February 4, 2026 02:56
…ion response

Signed-off-by: Jacinta Ferrant <236437600+jacinta-stacks@users.noreply.github.com>
@jacinta-stacks jacinta-stacks force-pushed the bugfix/wait-for-validation-before-issuing-signature branch from e2ccd0f to eeda833 Compare February 4, 2026 03:16
@jacinta-stacks jacinta-stacks marked this pull request as ready for review February 4, 2026 03:16
@codecov
Copy link

codecov bot commented Feb 4, 2026

Codecov Report

❌ Patch coverage is 6.73575% with 180 lines in your changes missing coverage. Please review.
✅ Project coverage is 73.43%. Comparing base (fab1a15) to head (394d3af).
⚠️ Report is 28 commits behind head on develop.

Files with missing lines Patch % Lines
...src/tests/signer/v0/signers_wait_for_validation.rs 0.00% 124 Missing ⚠️
stacks-node/src/tests/signer/v0/reorg.rs 0.00% 21 Missing ⚠️
stacks-node/src/tests/signer/v0/mod.rs 0.00% 16 Missing ⚠️
stacks-node/src/tests/signer/v0/tenure_extend.rs 0.00% 12 Missing ⚠️
stackslib/src/net/api/postblock_proposal.rs 68.75% 5 Missing ⚠️
stacks-signer/src/v0/signer.rs 50.00% 2 Missing ⚠️

❌ Your project status has failed because the head coverage (73.43%) is below the target coverage (80.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #6850      +/-   ##
===========================================
- Coverage    74.44%   73.43%   -1.02%     
===========================================
  Files          593      595       +2     
  Lines       358727   358946     +219     
===========================================
- Hits        267065   263597    -3468     
- Misses       91662    95349    +3687     
Files with missing lines Coverage Δ
stacks-signer/src/v0/signer.rs 75.36% <50.00%> (-5.98%) ⬇️
stackslib/src/net/api/postblock_proposal.rs 62.20% <68.75%> (-2.30%) ⬇️
stacks-node/src/tests/signer/v0/tenure_extend.rs 0.00% <0.00%> (ø)
stacks-node/src/tests/signer/v0/mod.rs 20.42% <0.00%> (-32.44%) ⬇️
stacks-node/src/tests/signer/v0/reorg.rs 16.58% <0.00%> (-28.12%) ⬇️
...src/tests/signer/v0/signers_wait_for_validation.rs 0.00% <0.00%> (ø)

... and 333 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fab1a15...394d3af. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jacinta-stacks jacinta-stacks marked this pull request as draft February 4, 2026 04:01
… into bugfix/wait-for-validation-before-issuing-signature
@jacinta-stacks jacinta-stacks marked this pull request as ready for review February 4, 2026 19:28
Signed-off-by: Jacinta Ferrant <236437600+jacinta-stacks@users.noreply.github.com>
Copy link
Contributor

@brice-stacks brice-stacks left a comment

Choose a reason for hiding this comment

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

👍

@jacinta-stacks jacinta-stacks added this pull request to the merge queue Feb 6, 2026
Merged via the queue into stacks-network:develop with commit 1d0f97c Feb 6, 2026
634 of 638 checks passed
@jacinta-stacks jacinta-stacks deleted the bugfix/wait-for-validation-before-issuing-signature branch February 6, 2026 18:58
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants