Function cfx_executor::state::settle_collateral_for_all
source · pub fn settle_collateral_for_all(
state: &mut State,
substate: &Substate,
tracer: &mut dyn TracerTrait,
spec: &Spec,
dry_run: bool
) -> Result<Result<(), CollateralCheckError>>
Expand description
Charge and refund all the storage collaterals. The suicided addresses are skimmed because their collateral have been checked out. This function should only be called in post-processing of a transaction.