diff --git a/bolt-sidecar/src/chain_io/manager.rs b/bolt-sidecar/src/chain_io/manager.rs index 9e5860c2..ae8f7fbb 100644 --- a/bolt-sidecar/src/chain_io/manager.rs +++ b/bolt-sidecar/src/chain_io/manager.rs @@ -58,6 +58,7 @@ impl BoltManager { ) -> eyre::Result> { let hashes_with_preimages = utils::pubkey_hashes(keys); let mut hashes = hashes_with_preimages.keys().cloned().collect::>(); + let total_keys = hashes.len(); let mut proposers_statuses = Vec::with_capacity(hashes.len()); @@ -75,7 +76,7 @@ impl BoltManager { "fetching {} proposer statuses for chunk {} of {}", hashes_chunk.len(), i, - hashes.len().div_ceil(CHUNK_SIZE) + total_keys.div_ceil(CHUNK_SIZE) ); let returndata = self.0.getProposerStatuses(hashes_chunk).call().await;