zebra/zebra-chain/src
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
..
block network: correct data modeling for headers messages 2020-12-02 10:24:31 -08:00
parameters Delete an outdated canopy activation comment 2020-12-01 07:27:30 +10:00
primitives
sapling Call `zebra_test::init` where needed. (#1227) 2020-11-10 10:29:25 +10:00
serialization chain: add missing sources to SerializationError 2020-12-01 19:16:41 -08:00
sprout Call `zebra_test::init` where needed. (#1227) 2020-11-10 10:29:25 +10:00
transaction Call `zebra_test::init` where needed. (#1227) 2020-11-10 10:29:25 +10:00
transparent chain: fix consensus-critical coinbase encoding bug 2020-12-01 10:14:44 +10:00
work Run `cargo fmt --all` (#1427) 2020-12-02 14:43:33 +10:00
amount.rs chain: tidy Debug for Amount 2020-11-21 14:09:15 -05:00
block.rs network: correct data modeling for headers messages 2020-12-02 10:24:31 -08:00
fmt.rs Inbound `FindBlocks` and `FindHeaders` (#1347) 2020-12-01 07:30:37 +10:00
lib.rs Disable the nightly clippy unnecessary_wraps lint (#1403) 2020-12-01 12:20:57 +10:00
parameters.rs move genesis parameters to zebra-chain (#1151) 2020-10-12 14:08:23 -07:00
primitives.rs
sapling.rs
serialization.rs
sprout.rs
transaction.rs state: insert into nullifier trees 2020-10-29 09:58:56 -07:00
transparent.rs chain: add custom Debug for CoinbaseData 2020-11-21 14:09:15 -05:00
work.rs