feat: improve block downloads (#2941)

This commit is contained in:
Matthias Seitz
2023-06-02 16:28:03 +02:00
committed by GitHub
parent f7a35f09b5
commit 7d14525307
6 changed files with 210 additions and 68 deletions

View File

@ -131,7 +131,7 @@ impl<'a, 'b, TX: DbTx<'a>> StateProvider for HistoricalStateProviderRef<'a, 'b,
Ok(Some(storage_entry.value))
} else if changeset_block_number == None {
// if there is no shards, return empty account.
return Ok(None);
return Ok(None)
} else {
// if changeset is not present that means that there was history shard but we need to
// use newest value from plain state