Zebra/zebrad/src/components
teor b1f14f47c6
Rewrite GetData handling to match the zcashd implementation (#1518)
* Rewrite GetData handling to match the zcashd implementation

`zcashd` silently ignores missing blocks, but sends found transactions
followed by a `NotFound` message:
e7b425298f/src/main.cpp (L5497)

This is significantly different to the behaviour expected by the old
Zebra connection state machine, which expected `NotFound` for blocks.

Also change Zebra's GetData responses to peer request so they ignore
missing blocks.

* Stop hanging on incomplete transaction or block responses

Instead, if the peer sends an unexpected block, unexpected transaction,
or NotFound message:
1. end the request, and return a partial response containing any items
   that were successfully received
2. if none of the expected blocks or transactions were received, return
   an error, and close the connection
2021-01-04 13:25:35 +10:00
..
inbound clippy 2020-11-25 10:55:44 -08:00
sync Disable issue URLs for "duplicate hash" errors (#1517) 2020-12-16 08:14:42 +10:00
tracing downgrade remaining version strings to 1.0.0-alpha.0 (#1488) 2020-12-15 11:21:00 +10:00
inbound.rs Rewrite GetData handling to match the zcashd implementation (#1518) 2021-01-04 13:25:35 +10:00
metrics.rs deps: update hyper, metrics to tokio 0.3 2020-11-20 10:08:16 -08:00
sync.rs Debug 2020-12-09 13:06:18 -05:00
tokio.rs deps: move to tokio 0.3, tower 0.4 2020-11-20 10:08:16 -08:00
tracing.rs Refactor tracing components (#834) 2020-08-06 10:29:31 -07:00