Skip to content

Commit

Permalink
filter relay block
Browse files Browse the repository at this point in the history
  • Loading branch information
YANG committed Dec 11, 2019
1 parent ca56875 commit 27aeca7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/neo/Network/P2P/RemoteNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ private void OnRelay(IInventory inventory)
if (bloom_filter != null && !bloom_filter.Test((Transaction)inventory))
return;
}
if (inventory is Block block && block.Index <= LastBlockIndex) return;
EnqueueMessage(MessageCommand.Inv, InvPayload.Create(inventory.InventoryType, inventory.Hash));
}

Expand Down

0 comments on commit 27aeca7

Please sign in to comment.