Skip to content

Commit 743bdc8

Browse files
avitenzerclaude
authored andcommitted
docs(retry): describe retries as re-sending the same request, drop the hash-cache dedup claim (MAG-2734)
The page said identical-response retries were deduplicated through a hash cache in relay_retries_manager.go. Nothing ever read that cache, and smart-router PR #389 deletes it. The same PR stops a retry from adding the archive extension, so the page now says what a retry does instead, and which requests need `lava-extension: archive` to reach an archive node (by-hash methods and EIP-1898 block objects; routing them automatically is MAG-4142). Merge together with or after Magma-Devs/smart-router#389. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent 14ef0f0 commit 743bdc8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎docs/configuration/failover/retry.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ The error classifier ([`protocol/common/error_registry.go`](https://github.com/M
2020

2121
The full code tables and per-code retryability are in [Error codes](../../reference/error-codes.md).
2222

23-
Same-response retries are deduplicated: if two nodes return the identical response, Smart Router won't burn a third attempt looking for a different answer. The dedup is a hash cache in [`protocol/lavaprotocol/relay_retries_manager.go`](https://github.com/Magma-Devs/smart-router/blob/main/protocol/lavaprotocol/relay_retries_manager.go).
23+
A retry re-sends the **same request** to a different node. It does not change what the request asks for: no extension such as `archive` is added on retry, so the retry pool is the same pool the first attempt drew from, minus the nodes that already failed. Each request starts with its own retry budget; nothing is remembered between requests.
24+
25+
Archive routing is decided once, before the first attempt, from the block the request names. Requests whose block the router cannot read are not routed to archive automatically: methods that name a block or transaction by hash (such as `eth_getTransactionReceipt` or `debug_traceTransaction`), and [EIP-1898](https://eips.ethereum.org/EIPS/eip-1898) block objects such as `{"blockHash": …}` or `{"blockNumber": …}`. To send one of those to an archive node, set the [`lava-extension: archive`](../../api/directives.md#override-the-extension) directive.
2426

2527
## Limits
2628

0 commit comments

Comments
 (0)