block: read_block: don't add not found blocks to resync queue

This commit is contained in:
Alex Auvolat
2025-09-13 17:38:23 +02:00
parent 5cf354acb4
commit d5a57e3e13

View File

@@ -562,9 +562,6 @@ impl BlockManager {
match self.find_block(hash).await {
Some(p) => self.read_block_from(hash, &p).await,
None => {
// Not found but maybe we should have had it ??
self.resync
.put_to_resync(hash, 2 * self.system.rpc_helper().rpc_timeout())?;
return Err(Error::Message(format!(
"block {:?} not found on node",
hash