You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cmd/cleanup-orphaned-external/main.go:100 - Type switch bug
The switch statement case int, int64: will not work as intended in Go. Type switches cannot match multiple types in one case. This should be separate cases or use type conversion.
cmd/cleanup-orphaned-external/main.go:144 - File path assumption
The code assumes external files are named {txID}.tx, but this may not match the actual naming convention used by stores/utxo/. Verify this matches reality to avoid deleting valid records or missing orphans.
Moderate
cmd/cleanup-orphaned-external/main.go:160 - Race condition in progress reporting
Multiple scan goroutines could simultaneously trigger the progress print when scanned % 100000 == 0. While not critical, this could cause duplicate or interleaved output.
cmd/cleanup-orphaned-external/main.go:62 - Nil policy parameter
Using nil for the delete policy may have undefined behavior. Consider using aero.NewWritePolicy() explicitly.
Other Observations
The P2P and block validation changes look reasonable:
Cleaner distinction between "malicious" (banned) and "unhealthy" (low reputation) peers
Better fallback logic when primary catchup peer fails
Improved backoff mechanism when all peers are exhausted
The sync coordinator changes improve resilience by clearing sync attempts when entering backoff, allowing fresh retries after the backoff period expires.
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
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.
No description provided.