Skip to content

fix: avoid calling the node for L2 tips on every sync (backport #22558)#22565

Merged
Thunkar merged 1 commit into
backport-to-v4-next-stagingfrom
claudebox/backport-22558-l2-tips
Apr 15, 2026
Merged

fix: avoid calling the node for L2 tips on every sync (backport #22558)#22565
Thunkar merged 1 commit into
backport-to-v4-next-stagingfrom
claudebox/backport-22558-l2-tips

Conversation

@AztecBot
Copy link
Copy Markdown
Collaborator

Summary

Backport of #22558 to v4-next.

fetchTaggedLogs repeatedly called the node for current timestamp and finalization block number. PXE triggers a sync just before simulation, so this is extremely wasteful and causes extra round trips on every sync. This fix passes L2 tips through a local store instead of querying the node each time.

Cherry-pick applied cleanly — no conflicts.

ClaudeBox log: https://claudebox.work/s/3e8944e23ce544c9?run=1

`fetchTaggedLogs` repeatedly called the node for current timestamp and
finalization block number. `PXE` triggers a sync just before simulation,
so this is extremely wasteful and causes extra round trips on every sync
@AztecBot AztecBot added ci-draft Run CI on draft PRs. claudebox Owned by claudebox. it can push to this PR. labels Apr 15, 2026
@Thunkar Thunkar marked this pull request as ready for review April 15, 2026 13:13
@Thunkar Thunkar enabled auto-merge April 15, 2026 13:13
@AztecBot
Copy link
Copy Markdown
Collaborator Author

Flakey Tests

🤖 says: This CI run detected 1 tests that failed, but were tolerated due to a .test_patterns.yml entry.

\033FLAKED\033 (8;;http://ci.aztec-labs.com/2929ea964b4e5fec�2929ea964b4e5fec8;;�):  yarn-project/end-to-end/scripts/run_test.sh simple src/e2e_p2p/duplicate_attestation_slash.test.ts (228s) (code: 0) group:e2e-p2p-epoch-flakes

@Thunkar Thunkar merged commit 3ebcd75 into backport-to-v4-next-staging Apr 15, 2026
20 of 26 checks passed
@Thunkar Thunkar deleted the claudebox/backport-22558-l2-tips branch April 15, 2026 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-draft Run CI on draft PRs. claudebox Owned by claudebox. it can push to this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants