This repository has been archived by the owner on May 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #600 from keep-network/tbtc-optimizations
TBTC extension optimizations Here we add some TBTC extension optimizations that should reduce costs related to Ethereum integration. Specifically: - We introduce a time cache for the monitoring filter. Determining whether a deposit should be tracked requires two ETH calls. This check is performed for each deposit multiple times as a response to monitored state transition events and all duplicates of those events. This can result in a significant number of unnecessary ETH calls. Introducing a time cache here should greatly reduce the number of calls. - We implement a signer-based action delay factor. Currently, all monitoring signers act at the same time. As result, only the first transaction is always successful while the rest revert and burn some amount of gas. The change introduced here forces each signer to wait an additional time, according to its signer index, before acting. This should prevent other signers to act if a successful action has been already made.
- Loading branch information
Showing
3 changed files
with
340 additions
and
44 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.