diff --git a/linera-chain/src/data_types.rs b/linera-chain/src/data_types.rs index da006d84c0a..896ab8ef57d 100644 --- a/linera-chain/src/data_types.rs +++ b/linera-chain/src/data_types.rs @@ -71,7 +71,7 @@ impl Block { } /// Returns all the blob IDs referred to in this block's operations. - pub fn blob_ids(&self) -> HashSet { + pub fn published_blob_ids(&self) -> HashSet { let mut blob_ids = HashSet::new(); for operation in &self.operations { if let Operation::System(SystemOperation::PublishBlob { blob_id }) = operation { diff --git a/linera-core/src/chain_worker/state.rs b/linera-core/src/chain_worker/state.rs index 4257f6285a5..3b74edde24c 100644 --- a/linera-core/src/chain_worker/state.rs +++ b/linera-core/src/chain_worker/state.rs @@ -331,7 +331,7 @@ where block: &Block, hashed_blobs: &[HashedBlob], ) -> Result, WorkerError> { - let mut required_blob_ids = block.blob_ids(); + let mut required_blob_ids = block.published_blob_ids(); // Find all certificates containing blobs used when executing this block. for hashed_blob in hashed_blobs { let blob_id = hashed_blob.id(); @@ -1087,7 +1087,7 @@ where }) .collect::>(); - let block_blob_ids = block.blob_ids(); + let block_blob_ids = block.published_blob_ids(); let missing_blobs_from_oracles = block_blob_ids .iter() .filter(|block_blob_id| !blob_ids_in_oracle_records.contains(block_blob_id)) diff --git a/linera-core/src/client.rs b/linera-core/src/client.rs index 4647babbdba..6d9a2fd74c9 100644 --- a/linera-core/src/client.rs +++ b/linera-core/src/client.rs @@ -1441,7 +1441,7 @@ where .local_node .read_or_download_hashed_certificate_values(nodes.clone(), block.bytecode_locations()) .await?; - let hashed_blobs = self.read_local_blobs(block.blob_ids()).await?; + let hashed_blobs = self.read_local_blobs(block.published_blob_ids()).await?; // Create the final block proposal. let key_pair = self.key_pair().await?; let proposal = if let Some(cert) = manager.requested_locked { diff --git a/linera-core/src/updater.rs b/linera-core/src/updater.rs index fdf81777d39..dba4d604547 100644 --- a/linera-core/src/updater.rs +++ b/linera-core/src/updater.rs @@ -266,7 +266,7 @@ where let required = match certificate.value() { CertificateValue::ConfirmedBlock { executed_block, .. } | CertificateValue::ValidatedBlock { executed_block, .. } => { - executed_block.block.blob_ids() + executed_block.block.published_blob_ids() } CertificateValue::Timeout { .. } => HashSet::new(), };