Shred fetch comment and debug message tweak (#8980) (#8990)

automerge

(cherry picked from commit 909321928c)

Co-authored-by: sakridge <sakridge@gmail.com>
This commit is contained in:
mergify[bot]
2020-03-21 09:25:08 -07:00
committed by GitHub
parent 50a3c98d21
commit 5342b3a53f

View File

@ -61,9 +61,8 @@ impl ShredFetchStage {
{ {
p.meta.discard = true; p.meta.discard = true;
if let Some((slot, index)) = Self::get_slot_index(p, index_overrun) { if let Some((slot, index)) = Self::get_slot_index(p, index_overrun) {
info!("slot {} index {}", slot, index); // Seems reasonable to limit shreds to 2 epochs away
if slot > last_root && slot < (last_slot + 2 * slots_per_epoch) { if slot > last_root && slot < (last_slot + 2 * slots_per_epoch) {
info!("slot > {}", last_root);
// Shred filter // Shred filter
let slot_received = shreds_received let slot_received = shreds_received
.entry(slot) .entry(slot)