Zebra/zebra-state
Henry de Valence b449fe93b2 network: correct data modeling for headers messages
We modeled a Bitcoin `headers` message as being a list of block headers.
However, the actual data structure is slightly different: it's a list of (block
header, transaction count) pairs.  This caused zcashd to reject our headers
messages.

To fix this, introduce a new `CountedHeader` struct with a `block::Header` and
transaction count `usize`, then thread it through the inbound service and the
state.

I tested this locally by running Zebra with these changes and inspecting a
trace-level log of the span of a peer connection that requested a nontrivial
headers packet from us, and verified that it did not reject our message.
2020-12-02 10:24:31 -08:00
..
src network: correct data modeling for headers messages 2020-12-02 10:24:31 -08:00
tests state: introduce PreparedBlock, FinalizedBlock 2020-11-23 14:16:39 +10:00
Cargo.toml Increase the open file limit on unix platforms 2020-12-02 15:32:36 +10:00