We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c35f259 commit d3deb14Copy full SHA for d3deb14
tests/zkevm/test_worst_compute.py
@@ -74,8 +74,8 @@ def test_worst_keccak(
74
# Now calculate available gas for [attack iteration]:
75
# Numerator = MAX_CODE_SIZE-3. The -3 is for the JUMPDEST, PUSH0 and JUMP.
76
# Denominator = (PUSHN + PUSH1 + KECCAK256 + POP) + PUSH1_DATA + PUSHN_DATA
77
- # TODO: the testing framework uses PUSH1(0) instead of PUSH0 which is suboptimal for the attack,
78
- # whenever this is fixed adjust accordingly.
+ # TODO: the testing framework uses PUSH1(0) instead of PUSH0 which is suboptimal for the
+ # attack, whenever this is fixed adjust accordingly.
79
max_iters_loop = (MAX_CODE_SIZE - 3) // (4 + 1 + (optimal_input_length.bit_length() + 7) // 8)
80
code = (
81
Op.JUMPDEST
0 commit comments