classify_rpc_scan_failure
Documentation for eth_defi.vault.rpc_scan_state.classify_rpc_scan_failure function.
- classify_rpc_scan_failure(error)
Separate retryable transport failures from deterministic code errors.
Contract reverts do not become whole-chain retry storms. Adapter version failures are handled per candidate before they reach this boundary.
Used by phase boundaries, admission batches and the scheduler’s retry gate. Production fallback providers wrap JSON-RPC failures in ExtraValueError; native Web3 error handling alone would miss those transport outcomes. Keep recognition narrow so unrelated ValueError/RuntimeError defects remain visible instead of being deferred indefinitely as provider outages.
- Parameters
error (BaseException) – Original phase exception.
- Returns
transientorinternal.- Return type