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 authored and GitHub committed 2021-04-04 22:25:40 +00:00
1 parent bfc8f4fcf3
commit 4df29e71ab
3 files changed
+133 -86

No files matched your search

@@ -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();