Skip to content

Conversation

@Galoretka
Copy link

Motivation

Redundant BackupHook in L2 when using stateless_execute.

Description

This change prevents adding a second BackupHook during stateless_execute when running in L2 mode. L2 already installs BackupHook via its default hook set, so adding another caused redundant finalize_execution work and a second identical tx_backup write. Restricting the injection to VMType::L1 preserves stateless behavior for L1 while removing unnecessary duplication for L2, with no functional change to execution semantics.

@Galoretka Galoretka requested a review from a team as a code owner November 10, 2025 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant