rust
rust copied to clipboard
feature: bootup db integrity check
Motivation
Prevent agent from accidentally being run with different contract addresses that previous invocations. This will prevent manual config wrangling from accidentally triggering severe agent issues
Solution
Add a bootup integrity check. This check stores the core contract addresses in the DB, keyed by network, and checks the config addresses against the DB at each bootup.
TODO: figure out how to disable integrity check in tests 🤔
PR Checklist
- [ ] Added Tests
- [x] Updated Documentation
- [x] Updated CHANGELOG.md for the appropriate package
- [ ] Ran PR in local/dev/staging