Skip to main content

prepare_child_state

Function prepare_child_state 

Source
pub fn prepare_child_state(
    journal: &JournalInner<JournalEntry>,
) -> HashMap<Address, Account, FbBuildHasher<20>>
Expand description

Prepares account state for execution across a synthetic transaction boundary.

Preserve account flags, including local creation, while making accounts outside the protocol warm-address set cold. All storage starts cold with its current value as the child’s original value. The parent’s state is unchanged.