Skip to main content

clear_eip2935_history_storage

Function clear_eip2935_history_storage 

Source
fn clear_eip2935_history_storage<CTX: ContextTr<Db: Database<Error = DatabaseError>, Journal: JournalExt>>(
    ecx: &mut CTX,
) -> Result<()>
Expand description

Clears the EIP-2935 history ring buffer with journaled writes, so that reverting the enclosing frame restores the previous history storage.

Warmth is preserved: slots that were cold stay cold. A database error reverts any partial clearing.