-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CallBatch] Allow to execute a batch in multiple sub-batches (#464)
While using CallBatch in dex-services, I noticed that we basically always need to limit the maximum batch size and therefore implement custom logic in the consumer of this API. This PR moves the sub-batching logic into ethcontracts by giving `execute_all` a batch size arguments. Unfortunately this is another breaking change (so we might have to release 0.12.0). ### Test Plan Added a unit test.
- Loading branch information
Showing
2 changed files
with
59 additions
and
40 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