Commit 301ca61
refactor(pxe): short-circuit block header lookup at anchor block (#23128)
## Summary
- Skip the `aztecNode.getBlock` RPC in `getBlockHeader` when the
requested block number matches the anchor — the anchor's header is
already in memory.
- Most utility executions query state at the anchor block, so this
avoids a redundant round-trip on the hot path.
Co-authored-by: Nico Chamo <nico.chamo@gmail.com>1 parent e0366c9 commit 301ca61
1 file changed
Lines changed: 6 additions & 0 deletions
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
310 | 315 | | |
311 | 316 | | |
312 | 317 | | |
| |||
995 | 1000 | | |
996 | 1001 | | |
997 | 1002 | | |
| 1003 | + | |
998 | 1004 | | |
999 | 1005 | | |
1000 | 1006 | | |
| |||
0 commit comments