Merged
Conversation
* feat: buy on Spark * chore: refactoring * fix: format
* fix: filter payout-sent BuyCrypto from pending balance log Exclude BuyCrypto entries from pending obligations when their PayoutOrder is already in PAYOUT_PENDING or COMPLETE status, preventing double-counting that caused negative totalBalance. * perf: scope payout query to last hour to avoid loading 86k rows Rename to getRecentPayoutSentCorrelationIds and add MoreThan(1h) filter. The race condition window is ~20min max, so 1h is sufficient.
Reduce memory footprint to prevent swap thrashing on 3.8GB VM running 5 blockchain containers: firo.conf: - dbcache: 512 → 256 MB (saves ~256 MB) - maxmempool: 300 → 100 MB (saves ~200 MB) - mempoolexpiry: 72 → 24 hours - maxorphantx: 100 → 10 (reduces cs_main lock hold time) - rpcworkqueue: 32 → 64 (more buffer before RPC rejection) - maxsendbuffer/maxreceivebuffer: reduced per-connection buffers docker-compose-firo.yml: - Add 2048M memory limit / 1024M reservation - Healthcheck: getblockcount instead of getblockchaininfo (lighter) - Healthcheck interval: 30s → 120s, timeout: 60s → 10s, retries: 10 → 3
TaprootFreak
approved these changes
Mar 4, 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.
Automatic Release PR
This PR was automatically created after changes were pushed to develop.
Commits: 1 new commit(s)
Checklist