rust icon indicating copy to clipboard operation
rust copied to clipboard

feature: bootup db integrity check

Open prestwich opened this issue 3 years ago • 0 comments

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

prestwich avatar Aug 01 '22 11:08 prestwich