refactor: improve state writing functions for db provider (#12885)

This commit is contained in:
Arsenii Kulikov
2024-11-26 22:26:22 +04:00
committed by GitHub
parent 83af493179
commit 38cf6c900d
3 changed files with 18 additions and 107 deletions

View File

@ -411,7 +411,7 @@ where
// Unwind account and storage changesets, as well as receipts.
//
// This also updates `PlainStorageState` and `PlainAccountState`.
let bundle_state_with_receipts = provider.take_state(range.clone())?;
let bundle_state_with_receipts = provider.take_state_above(unwind_to)?;
// Prepare the input for post unwind commit hook, where an `ExExNotification` will be sent.
if self.exex_manager_handle.has_exexs() {