zebra/zebra-chain
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
..
proptest-regressions Implement Expanded to Compact Difficulty Conversion (#1196) 2020-10-30 11:36:59 +10:00
src Inbound `FindBlocks` and `FindHeaders` (#1347) 2020-12-01 07:30:37 +10:00
Cargo.toml build(deps): bump tracing from 0.1.21 to 0.1.22 2020-11-24 10:55:53 -05:00