From d15799d4dbfc37e6fb2049df3b35e322443b30a4 Mon Sep 17 00:00:00 2001 From: "Bill.W" <0xbillw@gmail.com> Date: Fri, 17 Jan 2025 11:47:09 +0000 Subject: [PATCH 1/4] increase ceseal internal service payload size --- crates/cestory/src/bootstrap.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/cestory/src/bootstrap.rs b/crates/cestory/src/bootstrap.rs index 7967abf2..c751cf15 100644 --- a/crates/cestory/src/bootstrap.rs +++ b/crates/cestory/src/bootstrap.rs @@ -19,7 +19,7 @@ where // TODO(billw): If `cifrost` turns on the `fast-sync` switch, // it will load the current chain state to `ceseal`, and the chain state increases over time, // so increasing the size of the request packet is not the final solution. - const MAX_ENCODED_MSG_SIZE: usize = 48 << 20; // 48MiB + const MAX_ENCODED_MSG_SIZE: usize = 128 << 20; // 128MiB const MAX_DECODED_MSG_SIZE: usize = MAX_ENCODED_MSG_SIZE; let (expert_cmd_tx, expert_cmd_rx) = mpsc::channel(16); From f8c1b3d9fd1bfd9aec95d424dfe4215e637bc9ec Mon Sep 17 00:00:00 2001 From: "Bill.W" <0xbillw@gmail.com> Date: Fri, 17 Jan 2025 11:52:16 +0000 Subject: [PATCH 2/4] increase cesxt client response size --- crates/cesxt/src/chain_api.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/cesxt/src/chain_api.rs b/crates/cesxt/src/chain_api.rs index e3fb7571..b991bd16 100644 --- a/crates/cesxt/src/chain_api.rs +++ b/crates/cesxt/src/chain_api.rs @@ -37,7 +37,7 @@ pub async fn connect(uri: &str) -> Result { } const MAX_REQUEST_SIZE: u32 = 8 << 20; // 8MiB -const MAX_RESPONSE_SIZE: u32 = 128 << 20; //128MiB +const MAX_RESPONSE_SIZE: u32 = 256 << 20; //256MiB async fn ws_client(url: &str) -> Result { use jsonrpsee::client_transport::ws::Url; From 5998256b68d7ef8e43636c429fe7112753817790 Mon Sep 17 00:00:00 2001 From: "Bill.W" <0xbillw@gmail.com> Date: Fri, 17 Jan 2025 11:53:24 +0000 Subject: [PATCH 3/4] decrease the default values of block fetch and sync sizes --- standalone/teeworker/cifrost/src/types.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/standalone/teeworker/cifrost/src/types.rs b/standalone/teeworker/cifrost/src/types.rs index 3200a8d2..12e9b5ca 100644 --- a/standalone/teeworker/cifrost/src/types.rs +++ b/standalone/teeworker/cifrost/src/types.rs @@ -99,14 +99,14 @@ pub struct Args { pub mnemonic: String, #[arg( - default_value = "1000", + default_value = "500", long = "fetch-blocks", help = "The batch size to fetch blocks from Substrate." )] pub fetch_blocks: u32, #[arg( - default_value = "4", + default_value = "2", long = "sync-blocks", help = "The batch size to sync blocks to Ceseal." )] From 4bedf7729d7d0454179d098550078d2a6476c9f5 Mon Sep 17 00:00:00 2001 From: "Bill.W" <0xbillw@gmail.com> Date: Fri, 17 Jan 2025 12:10:56 +0000 Subject: [PATCH 4/4] bump versions that `ceseal` to `0.4.1` and `cifrost` to `0.3.1` --- Cargo.lock | 2 +- standalone/teeworker/ceseal/Cargo.lock | 2 +- standalone/teeworker/ceseal/Cargo.toml | 2 +- standalone/teeworker/cifrost/Cargo.toml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8b42c6ac..1e1c885c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2649,7 +2649,7 @@ dependencies = [ [[package]] name = "cifrost" -version = "0.3.0" +version = "0.3.1" dependencies = [ "anyhow", "async-trait", diff --git a/standalone/teeworker/ceseal/Cargo.lock b/standalone/teeworker/ceseal/Cargo.lock index 352f149a..c7953688 100644 --- a/standalone/teeworker/ceseal/Cargo.lock +++ b/standalone/teeworker/ceseal/Cargo.lock @@ -1637,7 +1637,7 @@ dependencies = [ [[package]] name = "ceseal" -version = "0.4.0" +version = "0.4.1" dependencies = [ "anyhow", "base64 0.13.1", diff --git a/standalone/teeworker/ceseal/Cargo.toml b/standalone/teeworker/ceseal/Cargo.toml index cd083460..dbcc5b2d 100644 --- a/standalone/teeworker/ceseal/Cargo.toml +++ b/standalone/teeworker/ceseal/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2021" name = "ceseal" -version = "0.4.0" +version = "0.4.1" build = "build.rs" [profile.release] diff --git a/standalone/teeworker/cifrost/Cargo.toml b/standalone/teeworker/cifrost/Cargo.toml index a92ba0e9..ac6f4093 100644 --- a/standalone/teeworker/cifrost/Cargo.toml +++ b/standalone/teeworker/cifrost/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cifrost" -version = "0.3.0" +version = "0.3.1" authors = ["CESS Network"] edition = "2021"