bitfield-dist: fix state update on gossip (#2817)

* bitfield-dist: fix state update on gossip

* fixes

* doc fixes

* oops

* 2 lines of code change
This commit is contained in:
Andronik Ordian
2021-04-05 00:25:40 +02:00
committed by GitHub
parent bfc8f4fcf3
commit 4df29e71ab
3 changed files with 133 additions and 86 deletions
@@ -513,7 +513,7 @@ impl State {
Some(entry) => entry,
None => {
if let Some(peer_id) = source.peer_id() {
tracing::debug!(
tracing::trace!(
target: LOG_TARGET,
?peer_id,
?block_hash,
@@ -1008,7 +1008,7 @@ impl State {
peer_id: PeerId,
blocks: Vec<(BlockDepth, Hash)>,
) {
// we will only propagate local assignment/approvals after a certain depth
// we will propagate only local assignment/approvals after a certain depth
const DEPTH_THRESHOLD: usize = 5;
let mut assignments = Vec::new();