-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
made max_payload_size configurable (#60)
The max_payload_size is checked in bft replica and also implies buffering limits in the network actor (both gossip and consensus networks). It turned out that hardcoding it was too optimistic strategy, so I've extracted it to a config, so that it is settable in runtime. Given the lesson learned, I'll be also deprecating the `ProtoFmt::max_size()` function soon. Additional changes: * added some logging useful for debugging the zksync-era tests and improved existing logging to always show error the cause, not just the leaf message. * removed `tracing::instrument` annotations which were logging non-critical/not-a-bug errors on level ERROR * made network crate depend on the storage crate to avoid the workaround way of implementing the get_block rpc * cleaned up the implementations of the rpcs to be more consistent * deduplicated the testonly helpers and moved them to the crates that they belong to
- Loading branch information
Showing
75 changed files
with
1,691 additions
and
2,019 deletions.
There are no files selected for viewing
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
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.