Zebra/zebra-network/src
Alfredo Garcia 4544463059
Inbound `FindBlocks` and `FindHeaders` (#1347)
* implement inbound `FindBlocks`
* Handle inbound peer FindHeaders requests
* handle request before having any chain tip
* Split `find_chain_hashes` into smaller functions

Add a `max_len` argument to support `FindHeaders` requests.

Rewrite the hash collection code to use heights, so we can handle the
`stop` hash and "no intersection" cases correctly.

* Split state height functions into "any chain" and "best chain"
* Rename the best chain block method to `best_block`
* Move fmt utilities to zebra_chain::fmt
* Summarise Debug for some Message variants

Co-authored-by: teor <teor@riseup.net>
Co-authored-by: Jane Lusby <jlusby42@gmail.com>
2020-12-01 07:30:37 +10:00
..
peer deps: move to tokio 0.3, tower 0.4 2020-11-20 10:08:16 -08:00
peer_set Placate clippy 2020-11-24 20:03:21 +10:00
protocol Inbound `FindBlocks` and `FindHeaders` (#1347) 2020-12-01 07:30:37 +10:00
address_book.rs Fix some "needless lifetime" clippy lints 2020-10-12 08:54:23 +10:00
config.rs Update the peerset buffer size and sync timeout 2020-09-08 12:44:33 -07:00
constants.rs network: bump network version for Canopy (#1333) 2020-11-20 09:50:05 +10:00
isolated.rs deps: move to tokio 0.3, tower 0.4 2020-11-20 10:08:16 -08:00
lib.rs network: rename alias to BoxError 2020-09-18 18:34:25 -07:00
meta_addr.rs Call `zebra_test::init` where needed. (#1227) 2020-11-10 10:29:25 +10:00
peer.rs Move server.rs to connection.rs and change imports. 2020-01-16 13:20:03 -05:00
peer_set.rs Implement Inventory Tracking RFC (#963) 2020-09-01 14:28:54 -07:00
policies.rs Fix sync algorithm. (#887) 2020-08-12 16:48:01 -07:00
protocol.rs Refactor protocol into internal, external modules. 2019-11-27 05:06:01 -05:00
timestamp_collector.rs Upgrade tokio, futures, hyper to released versions. 2019-12-13 17:42:15 -05:00