Skip to content

Commit 5e1c9c7

Browse files
authored
document eth_call pending limitation on Flashblocks nodes (#1234)
* document eth_call pending limitation on Flashblocks nodes * update language * update language * update language * add latency and configurable param context
1 parent af59d7f commit 5e1c9c7

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

docs/base-chain/flashblocks/faq.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,14 @@ For a comprehensive introduction to how Flashblocks work, see the [Flashblocks O
125125
- Run your own [Flashblocks-aware RPC node](/base-chain/node-operators/run-a-base-node#enable-flashblocks)
126126
</Accordion>
127127

128+
<Accordion title="Why does eth_call 'pending' report a block number several blocks behind tip?">
129+
This is expected behavior. Flashblocks-aware nodes store up to 5 historical blocks worth of Flashblocks state to prevent race conditions. When `eth_call "pending"` is called, it operates on top of that historical base, so the block number visible in the call context (e.g. `block.number`) may appear to be N-5.
130+
131+
When `eth_call "pending"` executes, the entire block context — `block.number`, `block.timestamp`, `block.basefee`, and all other block properties — corresponds to that historical base block (potentially N-5), not the current chain tip. **The call result is correct** in that it reflects all received Flashblocks state applied on top, but contracts that rely on block context properties should be aware that those values may be several blocks behind.
132+
133+
If you operate a node in a geographic region where your P2P latency is not significantly higher than the WebSocket stream latency, you can reduce this difference by lowering the `MAX_PENDING_BLOCKS_DEPTH` configuration value. This controls the maximum number of historical blocks worth of Flashblocks your node stores, so a lower value will make the block context closer to tip at the cost of reduced tolerance for P2P latency spikes.
134+
</Accordion>
135+
128136
<Accordion title="What RPC methods support Flashblocks?">
129137
The following methods are Flashblocks-enabled:
130138

0 commit comments

Comments
 (0)