-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trigger OnChainSettlementUpdates from event handling (#2387)
# Description Alternative to first doing #2335 Our goal is to trigger the settlement event update handler from within the main event handling (so we have control over the order of execution). At the same time "on settlement event updates" are not critical and more time-consuming. They require a full RPC round trip for every settlement they process, whereas the "critical" event updating (which is required for new auctions to run correctly) can run without additional calls and is therefore efficient for larger range (e.g. when catching up after a downtime). The goal of this PR is to bring the non-critical settlement updates into the critical control flow, without making it itself blocking (ie the critical code path just "schedules" execution of the non critical updates). # Changes <!-- List of detailed changes (how the change is accomplished) --> - [x] Change what triggers on settlement updates from being block based to being `Notify` based - [x] Move removal of non critical events from database event handling to on settlement event handling - [x] Trigger non critical updates non-blockingly from the critical code path ## How to test e2e tests ## Related Issues Fixes #2275
- Loading branch information
Showing
7 changed files
with
141 additions
and
105 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