pub fn update_state<DB>(
state: &mut HashMap<Address, Account, RandomState>,
db: &mut DB,
persistent_accounts: Option<&HashSet<Address>>,
) -> Result<(), <DB as Database>::Error>where
DB: Database,
Expand description
Helper method which updates data in the state with the data from the database. Does not change state for persistent accounts (for roll fork to transaction and transact).