-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP Smart worker check for open window + persistent error mgmt (#66)
<!-- < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < ☺ v ✰ Thanks for creating a PR! You're awesome! ✰ v Please note that maintainers will only review those PRs with a completed PR template. ☺ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --> ## Purpose of Changes and their Description Smart window detection, reducing the need queries for open nonces * Refactored mechanism to use same for workers and reputers via interface. * Fair offset calculation within window * Configurable and generic `QueryDataWithRetry`, to further reduce the chance of missing an epoch * Added parameters to control the mechanism, explained in README Other fixes * Account Sequence and Fees error mgmt is now robust - there's persistence of errors. * Loglevels - adding Trace. * Use of retries in all queries for robustness. * More robust registration and staking, using confirmation of registration and stake before going forward (otherwise the actor will just get its tx continuously rejected) * Fix panic when account on the keyring suddenly vanishes (eg cases of key removal or rebuilding keyring) * Added GetTopic query and others ## Link(s) to Ticket(s) or Issue(s) resolved by this PR ## Are these changes tested and documented? - [X] If tested, please describe how. If not, why tests are not needed. -- Tested against testnet, also added further unit tests - [X] If documented, please describe where. If not, describe why docs are not needed. -- On README. Added explanation and text-based visualization. - [x] Added to `Unreleased` section of `CHANGELOG.md`?
- Loading branch information
Showing
21 changed files
with
982 additions
and
146 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
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
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
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.