BlockId removal: refactor: Backend::state_at (#12488)

* Minor naming improved

* BlockId removal refactor: Backend::state_at

* formatting
This commit is contained in:
Michal Kucharczyk
2022-10-14 11:27:32 +02:00
committed by GitHub
parent dcd56b1ffd
commit 532dd5ecc2
12 changed files with 105 additions and 100 deletions
+2 -3
View File
@@ -258,12 +258,11 @@ where
let proof = self.api.extract_proof();
let state = self.backend.state_at(self.block_id)?;
let parent_hash = self.parent_hash;
let state = self.backend.state_at(&self.parent_hash)?;
let storage_changes = self
.api
.into_storage_changes(&state, parent_hash)
.into_storage_changes(&state, self.parent_hash)
.map_err(sp_blockchain::Error::StorageChanges)?;
Ok(BuiltBlock {