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/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); 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; 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" 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." )]