Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
YANG committed Dec 11, 2019
1 parent 27aeca7 commit 1e63918
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 the relay block's height is lower than RemoteNode.LastBlockIndex, 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 1e63918

Please sign in to comment.