Skip to content

fix: use u64 for reverted_gas_used in execute_best_transactions#756

Closed
letmehateu wants to merge 1 commit intobase:mainfrom
letmehateu:reverted-gas-used-type
Closed

fix: use u64 for reverted_gas_used in execute_best_transactions#756
letmehateu wants to merge 1 commit intobase:mainfrom
letmehateu:reverted-gas-used-type

Conversation

@letmehateu
Copy link
Copy Markdown
Contributor

reverted_gas_used was implicitly typed as i32 due to gas_used as i32 cast. gas_used is u64 — the as i32 silently truncates the value. Changed to explicit u64 to match the gas type used throughout the codebase.

@cb-heimdall
Copy link
Copy Markdown
Collaborator

cb-heimdall commented Feb 18, 2026

✅ Heimdall Review Status

Requirement Status More Info
Reviews 1/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

Copy link
Copy Markdown
Contributor

@refcell refcell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine including this change

@refcell refcell enabled auto-merge February 24, 2026 14:23
@refcell refcell disabled auto-merge February 24, 2026 16:15
@refcell
Copy link
Copy Markdown
Contributor

refcell commented Feb 24, 2026

I'm gonna close this for now -- not super critical and there's too many changes going on at the moment. Please feel free to re-open a new PR with the fixes.

@refcell refcell closed this Feb 24, 2026
danyalprout pushed a commit that referenced this pull request Mar 5, 2026
…vian (#756)

* explicitly require PayloadAttributes.MinBaseFee to be NULL pre jovian

Closes #755

* fix typo
mw2000 pushed a commit that referenced this pull request Mar 7, 2026
* feat: backup fp cache

* docs: update proposer.md

* test: unit and integration backup tests

* fix: dedicated blocking thread pool

* fix: test_proposer_backup_persistence

* test: add recovery test with backup

* fix: rebasing issue

* nit: touchups

* chore: rename to BACKUP_PATH

* chore: address comments (#763)

* chore(fault-proof): add comment explaining non-persisted backup fields

* fix(fault-proof): use tempfile for atomic backup writes

* fix(fault-proof): validate backup path at startup

* feat(fault-proof): add backup metrics for observability

* refactor(fault-proof): improve backup path validation and restore logic

Consolidate duplicate if-let blocks, add tracing for restore operations,
handle empty parent path edge case for relative paths, and log cleanup failures.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* test(fault-proof): add schema guard test for backup version

Add a test that fails if Game or ProposerBackup fields change,
reminding developers to bump BACKUP_VERSION when schema changes.
This catches accidental schema changes that would break backup
compatibility.

* refactor(fault-proof): simplify backup restore logic

Remove redundant path.exists() check before try_restore. Now only logs
error metric when file exists but couldn't be parsed, avoiding double
filesystem access and correctly distinguishing missing file from corrupt.

* refactor(fault-proof): use tempfile for backup path write test

Replace manual File::create + remove_file with NamedTempFile for the
write permission check. Ensures cleanup on panic and is consistent
with the atomic write approach used in backup.rs.

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>

* refactor(fault-proof): remove duplicate backup restore log

The log in ProposerState::try_restore() already provides restore
information with game count and cursor details.

* fix(tests): update optimism submodule for backup support

The submodule was reverted to an older commit during a merge with main.
This restores the correct commit that includes WithFPBackupPath needed
by the faultproof test presets.

* fix(tests): update optimism submodule to merged backup+challenger

Updates tests/optimism to 32bd7c930 which includes PR #325 merge
of backup support into op-succinct-sysgo branch.

---------

Co-authored-by: Taehoon Kim <taehoon@succinct.xyz>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
mw2000 pushed a commit that referenced this pull request Mar 9, 2026
* feat: backup fp cache

* docs: update proposer.md

* test: unit and integration backup tests

* fix: dedicated blocking thread pool

* fix: test_proposer_backup_persistence

* test: add recovery test with backup

* fix: rebasing issue

* nit: touchups

* chore: rename to BACKUP_PATH

* chore: address comments (#763)

* chore(fault-proof): add comment explaining non-persisted backup fields

* fix(fault-proof): use tempfile for atomic backup writes

* fix(fault-proof): validate backup path at startup

* feat(fault-proof): add backup metrics for observability

* refactor(fault-proof): improve backup path validation and restore logic

Consolidate duplicate if-let blocks, add tracing for restore operations,
handle empty parent path edge case for relative paths, and log cleanup failures.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* test(fault-proof): add schema guard test for backup version

Add a test that fails if Game or ProposerBackup fields change,
reminding developers to bump BACKUP_VERSION when schema changes.
This catches accidental schema changes that would break backup
compatibility.

* refactor(fault-proof): simplify backup restore logic

Remove redundant path.exists() check before try_restore. Now only logs
error metric when file exists but couldn't be parsed, avoiding double
filesystem access and correctly distinguishing missing file from corrupt.

* refactor(fault-proof): use tempfile for backup path write test

Replace manual File::create + remove_file with NamedTempFile for the
write permission check. Ensures cleanup on panic and is consistent
with the atomic write approach used in backup.rs.

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>

* refactor(fault-proof): remove duplicate backup restore log

The log in ProposerState::try_restore() already provides restore
information with game count and cursor details.

* fix(tests): update optimism submodule for backup support

The submodule was reverted to an older commit during a merge with main.
This restores the correct commit that includes WithFPBackupPath needed
by the faultproof test presets.

* fix(tests): update optimism submodule to merged backup+challenger

Updates tests/optimism to 32bd7c930 which includes PR #325 merge
of backup support into op-succinct-sysgo branch.

---------

Co-authored-by: Taehoon Kim <taehoon@succinct.xyz>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
mw2000 pushed a commit that referenced this pull request Mar 16, 2026
* feat: backup fp cache

* docs: update proposer.md

* test: unit and integration backup tests

* fix: dedicated blocking thread pool

* fix: test_proposer_backup_persistence

* test: add recovery test with backup

* fix: rebasing issue

* nit: touchups

* chore: rename to BACKUP_PATH

* chore: address comments (#763)

* chore(fault-proof): add comment explaining non-persisted backup fields

* fix(fault-proof): use tempfile for atomic backup writes

* fix(fault-proof): validate backup path at startup

* feat(fault-proof): add backup metrics for observability

* refactor(fault-proof): improve backup path validation and restore logic

Consolidate duplicate if-let blocks, add tracing for restore operations,
handle empty parent path edge case for relative paths, and log cleanup failures.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* test(fault-proof): add schema guard test for backup version

Add a test that fails if Game or ProposerBackup fields change,
reminding developers to bump BACKUP_VERSION when schema changes.
This catches accidental schema changes that would break backup
compatibility.

* refactor(fault-proof): simplify backup restore logic

Remove redundant path.exists() check before try_restore. Now only logs
error metric when file exists but couldn't be parsed, avoiding double
filesystem access and correctly distinguishing missing file from corrupt.

* refactor(fault-proof): use tempfile for backup path write test

Replace manual File::create + remove_file with NamedTempFile for the
write permission check. Ensures cleanup on panic and is consistent
with the atomic write approach used in backup.rs.

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>

* refactor(fault-proof): remove duplicate backup restore log

The log in ProposerState::try_restore() already provides restore
information with game count and cursor details.

* fix(tests): update optimism submodule for backup support

The submodule was reverted to an older commit during a merge with main.
This restores the correct commit that includes WithFPBackupPath needed
by the faultproof test presets.

* fix(tests): update optimism submodule to merged backup+challenger

Updates tests/optimism to 32bd7c930 which includes PR #325 merge
of backup support into op-succinct-sysgo branch.

---------

Co-authored-by: Taehoon Kim <taehoon@succinct.xyz>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
haardikk21 pushed a commit that referenced this pull request Mar 17, 2026
* feat: backup fp cache

* docs: update proposer.md

* test: unit and integration backup tests

* fix: dedicated blocking thread pool

* fix: test_proposer_backup_persistence

* test: add recovery test with backup

* fix: rebasing issue

* nit: touchups

* chore: rename to BACKUP_PATH

* chore: address comments (#763)

* chore(fault-proof): add comment explaining non-persisted backup fields

* fix(fault-proof): use tempfile for atomic backup writes

* fix(fault-proof): validate backup path at startup

* feat(fault-proof): add backup metrics for observability

* refactor(fault-proof): improve backup path validation and restore logic

Consolidate duplicate if-let blocks, add tracing for restore operations,
handle empty parent path edge case for relative paths, and log cleanup failures.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* test(fault-proof): add schema guard test for backup version

Add a test that fails if Game or ProposerBackup fields change,
reminding developers to bump BACKUP_VERSION when schema changes.
This catches accidental schema changes that would break backup
compatibility.

* refactor(fault-proof): simplify backup restore logic

Remove redundant path.exists() check before try_restore. Now only logs
error metric when file exists but couldn't be parsed, avoiding double
filesystem access and correctly distinguishing missing file from corrupt.

* refactor(fault-proof): use tempfile for backup path write test

Replace manual File::create + remove_file with NamedTempFile for the
write permission check. Ensures cleanup on panic and is consistent
with the atomic write approach used in backup.rs.

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>

* refactor(fault-proof): remove duplicate backup restore log

The log in ProposerState::try_restore() already provides restore
information with game count and cursor details.

* fix(tests): update optimism submodule for backup support

The submodule was reverted to an older commit during a merge with main.
This restores the correct commit that includes WithFPBackupPath needed
by the faultproof test presets.

* fix(tests): update optimism submodule to merged backup+challenger

Updates tests/optimism to 32bd7c930 which includes PR #325 merge
of backup support into op-succinct-sysgo branch.

---------

Co-authored-by: Taehoon Kim <taehoon@succinct.xyz>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
mw2000 pushed a commit that referenced this pull request Mar 19, 2026
* feat: backup fp cache

* docs: update proposer.md

* test: unit and integration backup tests

* fix: dedicated blocking thread pool

* fix: test_proposer_backup_persistence

* test: add recovery test with backup

* fix: rebasing issue

* nit: touchups

* chore: rename to BACKUP_PATH

* chore: address comments (#763)

* chore(fault-proof): add comment explaining non-persisted backup fields

* fix(fault-proof): use tempfile for atomic backup writes

* fix(fault-proof): validate backup path at startup

* feat(fault-proof): add backup metrics for observability

* refactor(fault-proof): improve backup path validation and restore logic

Consolidate duplicate if-let blocks, add tracing for restore operations,
handle empty parent path edge case for relative paths, and log cleanup failures.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* test(fault-proof): add schema guard test for backup version

Add a test that fails if Game or ProposerBackup fields change,
reminding developers to bump BACKUP_VERSION when schema changes.
This catches accidental schema changes that would break backup
compatibility.

* refactor(fault-proof): simplify backup restore logic

Remove redundant path.exists() check before try_restore. Now only logs
error metric when file exists but couldn't be parsed, avoiding double
filesystem access and correctly distinguishing missing file from corrupt.

* refactor(fault-proof): use tempfile for backup path write test

Replace manual File::create + remove_file with NamedTempFile for the
write permission check. Ensures cleanup on panic and is consistent
with the atomic write approach used in backup.rs.

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>

* refactor(fault-proof): remove duplicate backup restore log

The log in ProposerState::try_restore() already provides restore
information with game count and cursor details.

* fix(tests): update optimism submodule for backup support

The submodule was reverted to an older commit during a merge with main.
This restores the correct commit that includes WithFPBackupPath needed
by the faultproof test presets.

* fix(tests): update optimism submodule to merged backup+challenger

Updates tests/optimism to 32bd7c930 which includes PR #325 merge
of backup support into op-succinct-sysgo branch.

---------

Co-authored-by: Taehoon Kim <taehoon@succinct.xyz>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
mw2000 pushed a commit that referenced this pull request Mar 23, 2026
* feat: backup fp cache

* docs: update proposer.md

* test: unit and integration backup tests

* fix: dedicated blocking thread pool

* fix: test_proposer_backup_persistence

* test: add recovery test with backup

* fix: rebasing issue

* nit: touchups

* chore: rename to BACKUP_PATH

* chore: address comments (#763)

* chore(fault-proof): add comment explaining non-persisted backup fields

* fix(fault-proof): use tempfile for atomic backup writes

* fix(fault-proof): validate backup path at startup

* feat(fault-proof): add backup metrics for observability

* refactor(fault-proof): improve backup path validation and restore logic

Consolidate duplicate if-let blocks, add tracing for restore operations,
handle empty parent path edge case for relative paths, and log cleanup failures.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* test(fault-proof): add schema guard test for backup version

Add a test that fails if Game or ProposerBackup fields change,
reminding developers to bump BACKUP_VERSION when schema changes.
This catches accidental schema changes that would break backup
compatibility.

* refactor(fault-proof): simplify backup restore logic

Remove redundant path.exists() check before try_restore. Now only logs
error metric when file exists but couldn't be parsed, avoiding double
filesystem access and correctly distinguishing missing file from corrupt.

* refactor(fault-proof): use tempfile for backup path write test

Replace manual File::create + remove_file with NamedTempFile for the
write permission check. Ensures cleanup on panic and is consistent
with the atomic write approach used in backup.rs.

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>

* refactor(fault-proof): remove duplicate backup restore log

The log in ProposerState::try_restore() already provides restore
information with game count and cursor details.

* fix(tests): update optimism submodule for backup support

The submodule was reverted to an older commit during a merge with main.
This restores the correct commit that includes WithFPBackupPath needed
by the faultproof test presets.

* fix(tests): update optimism submodule to merged backup+challenger

Updates tests/optimism to 32bd7c930 which includes PR #325 merge
of backup support into op-succinct-sysgo branch.

---------

Co-authored-by: Taehoon Kim <taehoon@succinct.xyz>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
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.

3 participants