Skip to main content

rebase_loaded_accounts

Function rebase_loaded_accounts 

Source
pub fn rebase_loaded_accounts(
    state: &mut State<'_>,
    source: &mut State<'_>,
    persistent: &AddressSet,
) -> DbResult<()>
Expand description

Replaces the accounts the running transaction in state loaded, except persistent ones, with their accepted state in source, as journaled writes: info and loaded storage slots.

Used after replaying transactions on a fork while another one is active.