fix: start postman listeners from latest in local env#2371
Open
fix: start postman listeners from latest in local env#2371
Conversation
Use -1 for L1/L2 listener initial block in local postman config so e2e bridge claims are not delayed by replaying full chain history. Co-authored-by: Cursor <cursoragent@cursor.com>
jonesho
reviewed
Feb 13, 2026
| # Starting block for L1 event fetching. | ||
| # -1 = start from latest block (fast local e2e/default) | ||
| # 0 = replay from genesis (historical backfill, slower startup) | ||
| L1_LISTENER_INITIAL_FROM_BLOCK=-1 |
Contributor
There was a problem hiding this comment.
@Othryades I'm keen on setting this to -1, but do you see it really helps the timeout issue? Set to -1 can speed up the event fetching, but iiuc, the impact could be quite miminal given the fresh L1 chain without too many blocks, same for L2_LISTENER_INITIAL_FROM_BLOCK
Contributor
There was a problem hiding this comment.
@Othryades We can put -1 but it won't fix the issue in the e2e tests because this param is useful when we restart the postman.
We always use a fresh local stack and the postman only start once so this change won't have any effect.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use -1 for L1/L2 listener initial block in local postman config so e2e bridge claims are not delayed by replaying full chain history.
This PR fixes issue #1247
Checklist
Note
Low Risk
Only changes local Docker environment defaults/comments; no production code paths or security-sensitive logic are modified.
Overview
Local Postman Docker env config now defaults
L1_LISTENER_INITIAL_FROM_BLOCKandL2_LISTENER_INITIAL_FROM_BLOCKto-1(start from latest) instead of0(genesis replay), with streamlined comments clarifying the intended local e2e behavior.This reduces local startup/backfill time and avoids delays caused by replaying full chain history during end-to-end bridge flows.
Written by Cursor Bugbot for commit 83b2e6a. This will update automatically on new commits. Configure here.