zebra/zebrad/src/components
teor 9f2028feff
3. Send notfound when Zebra doesn't have a block or transaction (#3466)
* refactor(network): rename Advertised to Available

```sh
fastmod Advertised Available zebra*
fastmod advertised available zebra*
```

* refactor(network): allow different available and missing types inside an InventoryStatus

And rename it to ResponseStatus.

Split the methods between ResponseStatus and an InventoryStatus alias.

* refactor(network): add a block_hash convenience method to InventoryHash

* test(network): improve failure logs for connection tests

* fix(inbound): move address sanitization into the response future

* feat(network): send notfound when Zebra doesn't have a block or transaction

* doc(network): move module docs to the top of each module

This makes them more likely to get updated when the module changes.

* fix(network): stop sending unsupported missing inventory types to the registry

* test(network): inbound messages are forwarded to the registry

* test(inbound): test Peers requests to the inbound service, directly and via TCP

* test(network): notfound block responses are sent by the inbound service

* test(network): notfound tx responses are sent by the inbound service

* test(network): increase sync test mock service timeout

The code that these tests use hasn't actually changed much,
and they are only failing on some platforms (coverage, macOS).

So it seems like the extra concurrent inbound tests have pushed them
past their time limit.
(Perhaps due to TCP system calls, or extra serialization work.)

* doc(network): fix typo

Co-authored-by: Janito Vaqueiro Ferreira Filho <janito.vff@gmail.com>

* test(network): remove unnecessary multi-threaded runtime from tests

This prevents `MockService<zebra_state>` timeouts
in the `sync_block_too_high_extend_tips` test,
at the cost of reducing coverage of different execution orders.

Co-authored-by: Janito Vaqueiro Ferreira Filho <janito.vff@gmail.com>
2022-02-14 01:51:34 +00:00
..
inbound 3. Send notfound when Zebra doesn't have a block or transaction (#3466) 2022-02-14 01:51:34 +00:00
mempool 3. Send notfound when Zebra doesn't have a block or transaction (#3466) 2022-02-14 01:51:34 +00:00
sync 3. Send notfound when Zebra doesn't have a block or transaction (#3466) 2022-02-14 01:51:34 +00:00
tracing Reduce log level of components (#3418) 2022-01-28 14:24:53 -03:00
inbound.rs 3. Send notfound when Zebra doesn't have a block or transaction (#3466) 2022-02-14 01:51:34 +00:00
mempool.rs Security: Drop blocks that are a long way ahead of the tip (#3167) 2021-12-17 13:31:51 -03:00
metrics.rs Update to Tokio 1.13.0 (#2994) 2021-11-02 18:46:57 +00:00
sync.rs feat(log): log the state tip height as part of sync progress logs (#3437) 2022-01-28 19:12:19 -03:00
tokio.rs Reduce log level of components (#3418) 2022-01-28 14:24:53 -03:00
tracing.rs Stop downloading unnecessary blocks in Zebra acceptance tests (#3072) 2021-11-19 01:55:38 +00:00