diff --git a/linera-base/src/crypto.rs b/linera-base/src/crypto.rs index 09f474318211..f6300162f520 100644 --- a/linera-base/src/crypto.rs +++ b/linera-base/src/crypto.rs @@ -166,7 +166,7 @@ impl Serialize for CryptoHash { if serializer.is_human_readable() { serializer.serialize_str(&self.to_string()) } else { - serializer.serialize_newtype_struct("CryptoHash", &self.0) + serializer.serialize_newtype_struct("CryptoHash", &self.0.0) } } } diff --git a/linera-chain/src/chain.rs b/linera-chain/src/chain.rs index 99f8f2fb3ccc..0d5fa35cd0b4 100644 --- a/linera-chain/src/chain.rs +++ b/linera-chain/src/chain.rs @@ -148,7 +148,7 @@ static STATE_HASH_COMPUTATION_LATENCY: LazyLock = LazyLock::new(|| }); /// The BCS-serialized size of an empty `ExecutedBlock`. -const EMPTY_EXECUTED_BLOCK_SIZE: usize = 93; +const EMPTY_EXECUTED_BLOCK_SIZE: usize = 91; /// An origin, cursor and timestamp of a unskippable bundle in our inbox. #[derive(Debug, Clone, Serialize, Deserialize, async_graphql::SimpleObject)] diff --git a/linera-chain/src/unit_tests/chain_tests.rs b/linera-chain/src/unit_tests/chain_tests.rs index 9752e25fdfb8..c504e11a47ea 100644 --- a/linera-chain/src/unit_tests/chain_tests.rs +++ b/linera-chain/src/unit_tests/chain_tests.rs @@ -112,7 +112,7 @@ async fn test_block_size_limit() { let mut chain = ChainStateView::new(chain_id).await; // The size of the executed valid block below. - let maximum_executed_block_size = 713; + let maximum_executed_block_size = 707; // Initialize the chain. let mut config = make_open_chain_config();