Skip to content

Commit 4cee4eb

Browse files
committed
Increase max size when decoding gRPC messages, bump version for release
1 parent a781bf3 commit 4cee4eb

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

Cargo.lock

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ authors = [
1616
edition = "2021"
1717
license-file = "LICENSE.txt"
1818
publish = false
19-
version = "0.11.1"
19+
version = "0.11.2"
2020

2121
[workspace.dependencies]
2222
anyhow = "1.0.72"

lib/types/proto.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -896,9 +896,12 @@ pub mod mainchain {
896896
T: super::Transport,
897897
{
898898
pub fn new(inner: T) -> Self {
899+
// 1GB
900+
const MAX_DECODE_MESSAGE_SIZE: usize = 1024 * 1024 * 1024;
899901
Self(generated::validator_service_client::ValidatorServiceClient::<T>::new(
900902
inner,
901-
))
903+
).max_decoding_message_size(MAX_DECODE_MESSAGE_SIZE)
904+
)
902905
}
903906

904907
pub async fn get_block_header_info(

0 commit comments

Comments
 (0)