Repository navigation
feat(oracle): add DRY_RUN mode to log settlements without submitting - #1888
Conversation
d8b16af to
55fdd75
Compare
|
Warning Possible malicious code: please review before merging. An automated security scan flagged files in this pull request that appear to contain malicious code. Code like this can run automatically when a project is opened in an editor or its dependencies are installed, so it could compromise the machine of anyone who checks out this branch. Automated scans can be wrong, so this may be a false positive. Maintainers: please review the flagged files carefully before merging, on GitHub in your browser rather than by checking out the branch. The malicious part is often hidden far off to the right of an ordinary-looking line, so scroll sideways through each file. @Folashade6788: this pull request adds or changes these files, possibly without your knowledge. Malware like this spreads by adding itself to repositories on machines it has infected, so your machine might be compromised. Please undo these changes in this pull request, and don't open or run other projects on that machine until you've checked it. Flagged files at commit
Only merge once you're confident these files are safe. ℹ️ Posted automatically by Drips Wave. Questions? Contact support@drips.network. |
Overview
This PR adds a
DRY_RUNmode to the oracle service. WhenDRY_RUN=true, the service logs the settlement details it would have submitted, but skips theSorobanClient::submit_resultcall so no transactions are sent. This is intended for debugging and auditing against a live contract.Related Issue
Changes
🔧 Configuration
oracle-service/src/config.rsDRY_RUNenvironment variable and exposes it on the service config (defaults to disabled).🚀 Service Runtime
oracle-service/src/main.rsSorobanClient::submit_resultcall.Verification Results
Tests for the dry-run path were part of the issue's task list but are not included in the changed-file list for this PR, so no test results are claimed here.
DRY_RUNenv var is read inconfig.rsoracle-service/src/config.rssubmit_resultis skipped when enabledoracle-service/src/main.rsCloses #1796