lighthouse/beacon_node
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
..
beacon_chain Reorg events (#2090) 2021-06-17 02:10:46 +00:00
client Monitoring service api (#2251) 2021-05-26 05:58:41 +00:00
eth1 Handle Geth pre-EIP-155 block sync error condition (#2304) 2021-06-17 02:10:47 +00:00
eth2_libp2p split outbound and inbound codecs encoded types (#2410) 2021-06-17 00:40:16 +00:00
genesis Add SensitiveUrl to redact user secrets from endpoints (#2326) 2021-05-04 01:59:51 +00:00
http_api Reorg events (#2090) 2021-06-17 02:10:46 +00:00
http_metrics Tune GNU malloc (#2299) 2021-05-28 05:59:45 +00:00
network Make less logs for attn with unknown head (#2395) 2021-06-07 02:34:09 +00:00
operation_pool Pack attestations into blocks in parallel (#2307) 2021-04-13 05:27:42 +00:00
src Fix options for --eth1-endpoints flag (#2392) 2021-06-04 00:10:59 +00:00
store Return a specific error for frozen attn states (#2384) 2021-06-01 06:59:43 +00:00
tests Update to tokio 1.1 (#2172) 2021-02-10 23:29:49 +00:00
timer Update to tokio 1.1 (#2172) 2021-02-10 23:29:49 +00:00
websocket_server Server sent events (#1920) 2020-12-04 00:18:58 +00:00
Cargo.toml v1.4.0 (#2402) 2021-06-10 01:44:49 +00:00