Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-write local state query client code with LSQ monad
Goals - Make AcquireFailures impossible (for wallet API users) - Eliminate integration test flakiness - Reduce boilerplate by adding a monad for composing queries to be run against any, but the same, node tip. * wip: leverage STM retrying This adopts the state observation pattern Duncan described in a recent STM seminar. We now use pure TVar's. Not TMVar or Chan. We can still efficiently observe for changes by using `guard`. This seems to make the tests much greener. Hoping this fixes several flaky tests on master. * Reduce boilerplate, and re-add support for past eras
- Loading branch information
Showing
4 changed files
with
334 additions
and
417 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Oops, something went wrong.