Repository navigation
Fix unreachable code and missing validation across multiple services - #775
Merged
meshackyaro merged 2 commits intoOct 19, 2026
Merged
Conversation
- Fix trustflow-protocol#749: Reorder JWT_SECRET validation to check placeholder values before length - Fix trustflow-protocol#761: Add missing imports for MetricsService and SentryService, define LOCK_RENEWAL_INTERVAL_MS constant - Fix trustflow-protocol#757: Map IPFS pin status to deliverable status so PENDING and FAILED states are reachable - Fix trustflow-protocol#764: Add validation to reject even juror counts to prevent vote ties These changes ensure all code paths are reachable and proper validation prevents edge cases.
|
@opeaceooo Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
olayinkaabdulsalam-hub
added a commit
to olayinkaabdulsalam-hub/trustflow-backend
that referenced
this pull request
Oct 19, 2026
…rustflow-protocol#775) - Fix trustflow-protocol#749: Reorder JWT_SECRET validation to check placeholder values before length - Fix trustflow-protocol#761: Add missing imports for MetricsService and SentryService, define LOCK_RENEWAL_INTERVAL_MS constant - Fix trustflow-protocol#757: Map IPFS pin status to deliverable status so PENDING and FAILED states are reachable - Fix trustflow-protocol#764: Add validation to reject even juror counts to prevent vote ties These changes ensure all code paths are reachable and proper validation prevents edge cases. Co-authored-by: Maverick <151352447+meshackyaro@users.noreply.github.com>
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.
Summary
Fixes four critical issues where code paths were unreachable or missing validation:
Changes
env.config.ts
gig-expiry-worker.service.ts
MetricsServiceandSentryServiceLOCK_RENEWAL_INTERVAL_MSconstant (10 seconds) for lock renewal during long sweepsdeliverable.service.ts
PinStatusfrom ipfs-pinning typesmapPinStatusToDeliverableStatus()method to map IPFS pin states to deliverable statesupload()to use pin result status: HEALTHY → PINNED, DEGRADED → PENDING, FAILED → FAILEDdispute-saga.service.ts
assignJurors()to reject even juror countsCloses #749
Closes #761
Closes #757
Closes #764