lighthouse/beacon_node/eth1/src
Jack 98ab00cc52 Handle Geth pre-EIP-155 block sync error condition (#2304)
## Issue Addressed

#2293 

## Proposed Changes

 - Modify the handler for the `eth_chainId` RPC (i.e., `get_chain_id`) to explicitly match against the Geth error string returned for pre-EIP-155 synced Geth nodes
 - ~~Add a new helper function, `rpc_error_msg`, to aid in the above point~~
 - Refactor `response_result` into `response_result_or_error` and patch reliant RPC handlers accordingly (thanks to @pawanjay176)

## Additional Info

Geth, as of Pangaea Expanse (v1.10.0), returns an explicit error when it is not synced past the EIP-155 block (2675000). Previously, Geth simply returned a chain ID of 0 (which was obviously much easier to handle on Lighthouse's part).


Co-authored-by: Paul Hauner <paul@paulhauner.com>
2021-06-17 02:10:47 +00:00
..
block_cache.rs Return eth1-related data via the API (#1797) 2020-11-02 00:37:30 +00:00
deposit_cache.rs Fix clippy errors on tests (#2160) 2021-01-28 23:31:06 +00:00
deposit_log.rs Fix new clippy lints (#2036) 2020-12-03 01:10:26 +00:00
http.rs Handle Geth pre-EIP-155 block sync error condition (#2304) 2021-06-17 02:10:47 +00:00
inner.rs Reduce outbound requests to eth1 endpoints (#2340) 2021-05-31 04:18:18 +00:00
lib.rs Fallback nodes for eth1 access (#1918) 2020-11-27 08:37:44 +00:00
metrics.rs Monitoring service api (#2251) 2021-05-26 05:58:41 +00:00
service.rs Return more detail in Eth1 HTTP errors (#2383) 2021-06-01 06:59:41 +00:00