Conversation
…ChunkResult.error WERR_NETWORK_CHAIN was defined and deserialized but never thrown, and no processSyncChunk producer or consumer set or read result.error. Remove the dead surface instead of inventing new chain-mismatch or chunk-error semantics. Historical JSON with that error name still deserializes as a generic WalletError. Closes #541 Closes #542 Co-authored-by: deggen <d.kellenschwiler@bsvassociation.org>
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This branch has not been deployed
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.



Fixes #541 and #542.
Program and scope
@bsv/wallet-toolboxadvertised two unused failure surfaces.WERR_NETWORK_CHAINwas defined and deserialized but never thrown, so readers could infer a live cross-chain sync guard that does not exist.ProcessSyncChunkResult.errorwas declared but never set or read, so a third-party writer could populate it and both sync loops would ignore it.fbb0b5f8fb1088907decf7fde4abadd65feb424aImpact
Affected packages/services and intended patch versions (publication occurs only
through the release workflow after approval):
@bsv/wallet-toolbox2.13.0 (unpublished candidate; no version bump)@bsv/wallet-toolbox-client2.13.1 and@bsv/wallet-toolbox-mobile2.13.1 share the same source and inherit the type cleanupVerification
pnpm --filter @bsv/wallet-toolbox typecheckpassedpnpm --filter @bsv/wallet-toolbox lintpassedpnpm --filter @bsv/wallet-toolbox-client typecheckpassedpnpm --filter @bsv/wallet-toolbox-mobile typecheckpassedpnpm lintpassedpnpm format:checkpassedpnpm health:checkpassed (208 script tests, docs/packages check, contributor policy, repository health)fbb0b5f8fb1088907decf7fde4abadd65feb424a— 35 successful, 0 failed, 6 expected scope-based skips (SDK/DID/VeriFast coverage, non-coverage packages, mutation matrix, infra). Requiredmerge-gate, CodeQL, Sonar quality gate, Socket, codecov/patch, and conformance all passed. Run: https://github.com/bsv-blockchain/ts-stack/actions/runs/35616993704CI / Conformance Vectorsand requiredConformance / ts-runnerpassed. BRC-40 completion still usesProcessSyncChunkResult.done; no vector assertederrorcodecov/patchpassedCI / Build, lint, and policypassedCI / Platform / wallet browserandCI / Platform / wallet mobilepassed.pack:checkentry-exports never listedWERR_NETWORK_CHAINcompatibility, public API, artifacts, dependencies, docs, and operations
scope-based skip is expected and validated by the merge gate
Security and dependencies
audit results were reviewed
(including accepted or false-positive issue states) and zero unreviewed hotspots;
Sonar's aggregate
Quality Gate passedverdict alone is not merge evidenceand removal condition
Release and operations
controlling program
Decision
No existing live-sync call site throws a chain-mismatch
WalletError. Portable BRC-38 import and ChainTracks ingest already throw genericErrors for different paths; rewiring those would invent new error identities. Go'sProcessSyncChunkResulthas noErrorfield, and no TypeScript producer or consumer usederror. Removal is the smallest correct fix.Historical JSON with name
WERR_NETWORK_CHAINstill deserializes as a genericWalletError.Do not merge. Keep as draft pending maintainer review.