-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose method to fetch internal state on an OffchainStateInstance
#1953
base: main
Are you sure you want to change the base?
Conversation
This looks like the right change. Did you test with any examples? |
I was actually pretty unsure of how to unit test this! First I tried creating separate instances of |
I think it would be easiest to test on lightnet or devnet so you can have 2 different nodeJS threads running different instances of offchain state and talk to the same blockchain... that ought to work. You could add it to the integration tests, or just run a test yourself to make sure this let's you sync back up with the chain after the chain diverges from your local state. |
Created to address 1935.
Exposes a method on
OffchainStateInstance
fetchInternalState
which fetches settled actions from the archive node and rebuilds the internal state trees.