fix(subtreevalidation): repair test compile break on main from #799/#1065 cross-merge#1076
Merged
oskarszoon merged 1 commit intoJun 11, 2026
Conversation
…and New signatures PR bsv-blockchain#799 added a policyRejectedTx Kafka producer/consumer parameter to validator.New and subtreevalidation.New. PR bsv-blockchain#1065 added these test files on a branch based before bsv-blockchain#799 merged, calling the old signatures. Both merged without textual conflict, leaving main uncompilable in services/subtreevalidation test code — every PR syncing with main now fails golangci-lint/vet. Pass nil for the new parameter at the three call sites, matching the pattern used by the already-updated tests in the same package.
Contributor
|
🤖 Claude Code Review Status: Complete Current Review: No issues found. This is a correct, minimal test-only fix for the cross-PR semantic conflict described.
Parameter ordering verified against the current signatures in |
|
Contributor
Benchmark Comparison ReportBaseline: Current: Summary
All benchmark results (sec/op)
Threshold: >10% with p < 0.05 | Generated: 2026-06-11 14:32 UTC |
gokutheengineer
approved these changes
Jun 11, 2026
freemans13
approved these changes
Jun 11, 2026
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.



What
Main does not compile in
services/subtreevalidationtest code. Cross-PR semantic conflict:policyRejectedTxKafka producer/consumer parameter tovalidator.Newandsubtreevalidation.Newlegacy_real_validator_integration_test.goandlegacy_unconfirmed_parents_test.goon a branch based before feat: optimize handling of policy-rejected txs from other miners #799 merged, calling the old signaturesNo textual conflict, both merged green individually. Result:
go vet/ golangci-lint fails on main, and every PR that syncs with main inherits the failure (first noticed on #1074, a docs PR).Fix
Pass
nilfor the new parameter at the three call sites, matching the pattern in the already-updated tests in the same package (SubtreeValidation_test.gousesnilConsumer, nilConsumer, nil, nil).Verification
go vet ./services/subtreevalidation/: clean (fails on current main)go test -race -tags testtxmetacache -run "TestLegacyUnconfirmedParent_RealValidatorIntegration|TestCheckSubtreeFromBlockLegacyUnconfirmedParents" ./services/subtreevalidation/: pass