Skip to content

Commit 8527704

Browse files
committed
Increase max size when decoding gRPC messages, bump version for release
1 parent b753385 commit 8527704

File tree

3 files changed

+29
-17
lines changed

3 files changed

+29
-17
lines changed

Cargo.lock

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

Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ utoipa = { version = "5.2.0", default-features = false }
3838
[workspace.dependencies.bip300301_enforcer_lib]
3939
default-features = false
4040
git = "https://github.com/Ash-L2L/bip300301_enforcer"
41-
rev = "135d408213ee7309b59f49dfdc2608e6fa53db42"
41+
rev = "42cfbe73a894186a73cadc36cc398b879fe5bee6"
4242

4343
[workspace.dependencies.bip300301_enforcer_integration_tests]
4444
default-features = false
4545
git = "https://github.com/Ash-L2L/bip300301_enforcer"
46-
rev = "135d408213ee7309b59f49dfdc2608e6fa53db42"
46+
rev = "42cfbe73a894186a73cadc36cc398b879fe5bee6"
4747

4848
[workspace.dependencies.l2l-openapi]
4949
git = "https://github.com/Ash-L2L/l2l-openapi"
@@ -66,7 +66,7 @@ authors = [ "Ash Manning <ash@layertwolabs.com>" ]
6666
edition = "2021"
6767
license-file = "LICENSE.txt"
6868
publish = false
69-
version = "0.11.1"
69+
version = "0.11.2"
7070

7171
# temp-dir does not leak correctly after clone
7272
# https://gitlab.com/leonhard-llc/ops/-/issues/17

lib/types/proto.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -900,9 +900,12 @@ pub mod mainchain {
900900
T: super::Transport,
901901
{
902902
pub fn new(inner: T) -> Self {
903+
// 1GB
904+
const MAX_DECODE_MESSAGE_SIZE: usize = 1024 * 1024 * 1024;
903905
Self(generated::validator_service_client::ValidatorServiceClient::<T>::new(
904906
inner,
905-
))
907+
).max_decoding_message_size(MAX_DECODE_MESSAGE_SIZE)
908+
)
906909
}
907910

908911
pub async fn get_block_header_info(

0 commit comments

Comments
 (0)