lighthouse/beacon_node
divma ba10c80633 Refactor inbound substream logic with async (#1325)
## Issue Addressed
#1112 

The logic is slightly different but still valid wrt to error handling.
- Inbound state is either Busy with a future that return the subtream (and info about the processing)
- The state machine works as follows:
  - `Idle` with pending responses => `Busy`
  - `Busy` => finished ? if so and there are new pending responses then `Busy`, if not then `Idle`
               => not finished remains `Busy`
- Add an `InboundInfo` for readability
- Other stuff:
  - Close inbound substreams when all expected responses are sent
  - Remove the error variants from `RPCCodedResponse` and use the codes instead
  - Fix various spelling mistakes because I got sloppy last time

Sorry for the delay

Co-authored-by: Age Manning <Age@AgeManning.com>
2020-07-23 12:30:43 +00:00
..
beacon_chain Small improvement: encapsulate a public field (#1362) 2020-07-22 09:34:57 +00:00
client Remove unused event handler function (#1377) 2020-07-22 10:24:35 +00:00
eth1 Fix early return from DepositLog parsing (#1382) 2020-07-22 10:24:37 +00:00
eth2_libp2p Refactor inbound substream logic with async (#1325) 2020-07-23 12:30:43 +00:00
genesis Update deps (#1322) 2020-07-06 11:55:56 +10:00
network Fix attestation propagation (#1360) 2020-07-20 12:55:32 +10:00
operation_pool Update deps (#1322) 2020-07-06 11:55:56 +10:00
rest_api Add ability to configure CORS header (#1345) 2020-07-16 07:23:14 +00:00
src replace max_peers cli argument by target_peers and use excess peers above target_peers capped by a new constant PEER_EXCESS_FACTOR (relative to target_peers) (#1383) 2020-07-23 13:55:36 +10:00
store Update deps (#1322) 2020-07-06 11:55:56 +10:00
tests Improve tokio task execution (#1181) 2020-06-04 21:48:05 +10:00
timer Update deps (#1322) 2020-07-06 11:55:56 +10:00
version v0.1.2 (#1155) 2020-05-18 15:05:23 +10:00
websocket_server Improve tokio task execution (#1181) 2020-06-04 21:48:05 +10:00
Cargo.toml Add ability to configure CORS header (#1345) 2020-07-16 07:23:14 +00:00