Skip to content

Commit

Permalink
reverts #17542 (#20259)
Browse files Browse the repository at this point in the history
#17542
excludes caller's crds values from pull responses.

Reverting that commit so that when a (staked) node restarts, it can
obtain its crds values before restart from other nodes.

(cherry picked from commit 43ed727)
  • Loading branch information
behzadnouri authored and mergify-bot committed Sep 27, 2021
1 parent a90c338 commit 8ed8702
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions gossip/src/crds_gossip_pull.rs
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,6 @@ impl CrdsGossipPull {
dropped_requests.fetch_add(1, Ordering::Relaxed);
return Vec::default();
}
let caller_pubkey = caller.pubkey();
let caller_wallclock = caller_wallclock.checked_add(jitter).unwrap_or(0);
let pred = |entry: &&VersionedCrdsValue| {
debug_assert!(filter.test_mask(&entry.value_hash));
Expand All @@ -513,8 +512,6 @@ impl CrdsGossipPull {
false
} else {
!filter.filter_contains(&entry.value_hash)
&& (entry.value.pubkey() != caller_pubkey
|| entry.value.should_force_push(&caller_pubkey))
}
};
let out: Vec<_> = crds
Expand Down

0 comments on commit 8ed8702

Please sign in to comment.