-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make RAV value threshold per sender (#113)
* Make RAV value threshold per sender Fixes #93 Signed-off-by: Alexis Asseman <[email protected]> * fix: simplify rav_requester_finalize error handling Signed-off-by: Alexis Asseman <[email protected]> * fix: proper signer/sender handling at startup DB SenderAccount loading Signed-off-by: Alexis Asseman <[email protected]> * test: cleanup Signed-off-by: Alexis Asseman <[email protected]> * fix: nested SQL query in sender_accounts_manager Signed-off-by: Alexis Asseman <[email protected]> * refactor: move static methods into Inner impl Signed-off-by: Alexis Asseman <[email protected]> * refactor: simplify SenderAcccount's fees_add Signed-off-by: Alexis Asseman <[email protected]> * refactor: replace active and ineligible allocations with AllocationStateEnum and single HashMap Signed-off-by: Alexis Asseman <[email protected]> * fix: locking issue and recompute unaggregated fees * fix: unaggregated fees update race condition with tokio mutex guards Signed-off-by: Alexis Asseman <[email protected]> * chore: fix comments Signed-off-by: Alexis Asseman <[email protected]> * fix: use std mutex for sender_accounts Signed-off-by: Alexis Asseman <[email protected]> --------- Signed-off-by: Alexis Asseman <[email protected]> Co-authored-by: Gustavo Inacio <[email protected]>
- Loading branch information
Showing
15 changed files
with
1,893 additions
and
1,243 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
.sqlx/query-08726aaece34702a956885e927166df6b1f8ad0a0589464b9cbd9f09ca3f38db.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
.sqlx/query-778a427621acd2003b94340e46df1b73bfc863f0fa48004a4d5bd39cd97b07bb.json
This file was deleted.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
.sqlx/query-9fb8ca8ec1553951f20f81acdcfe52ad56d1bbac73fbcf5a93808bd4eaafdd4a.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.