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

chore: take historical block count from env #574

Merged
merged 3 commits into from
Sep 13, 2024

Conversation

nbaztec
Copy link
Collaborator

@nbaztec nbaztec commented Sep 13, 2024

Motivation

Fetching last 256 blocks from rpc causes too much noise, in addition to, several rpc requests.

Solution

Make this parameter configurable with the env variable ZK_DEBUG_HISTORICAL_BLOCK_HASHES, in the absence of a generic config setting.

ZK_DEBUG_HISTORICAL_BLOCK_HASHES=0 forge test     # disables fetching historical block hashes

@nbaztec nbaztec merged commit bd4ac3b into main Sep 13, 2024
11 checks passed
@nbaztec nbaztec deleted the nish-env-disable-historical-blocks branch September 13, 2024 16:05
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