Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix uint64 underflow in SequencerClient #2266

Merged
merged 2 commits into from
Nov 8, 2024
Merged

Fix uint64 underflow in SequencerClient #2266

merged 2 commits into from
Nov 8, 2024

Conversation

sveitser
Copy link
Collaborator

@sveitser sveitser commented Nov 8, 2024

This underflow causes the fund-builder service to query for the block with block number max(uint64) when the demo is started and the current block height is still zero.

To test

scripts/build-docker-images-native
just demo --force-recreate --renew-anon-volumes 

and run scripts/smoke-test-demo in another terminal.

We should also add a regression tests for this, or run our demo with non-release build (enabled overflow checks).

Also increases the number of retries from 5 to 10, so we would retry for a total of 2 seconds instead of 1. I figured it doesn't hurt to fail a second later.

This underflow causes the fund-builder service to query for the block
with block number max(uint64) when the demo is started and the current
block height is still zero.

To test run `just demo` locally and `scripts/smoke-test-demo` in another
terminal.

We should also add a regression tests for this, or run our demo with
non-release build (enabled overflow checks).
@sveitser sveitser enabled auto-merge November 8, 2024 13:08
@sveitser sveitser merged commit 092ad42 into main Nov 8, 2024
17 of 18 checks passed
@sveitser sveitser deleted the ma/fix-docker-demo branch November 8, 2024 13:12
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.

2 participants