From 9d8057b656d418ec59f576fbcd43c9c9a047dd5a Mon Sep 17 00:00:00 2001 From: Qiao Jin Date: Tue, 2 Feb 2021 22:30:09 +0800 Subject: [PATCH] fix --- src/neo/Network/P2P/TaskManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/neo/Network/P2P/TaskManager.cs b/src/neo/Network/P2P/TaskManager.cs index c7596fd66e..d0dab74cc3 100644 --- a/src/neo/Network/P2P/TaskManager.cs +++ b/src/neo/Network/P2P/TaskManager.cs @@ -74,7 +74,7 @@ private void OnNewTasks(InvPayload payload) // Do not accept payload of type InventoryType.TX if not synced on HeaderHeight uint currentHeight = NativeContract.Ledger.CurrentIndex(Blockchain.Singleton.View); uint headerHeight = Blockchain.Singleton.HeaderCache.Last?.Index ?? currentHeight; - if (payload.Type == InventoryType.TX && currentHeight < headerHeight) + if (currentHeight < headerHeight) { RequestTasks(Sender, session); return;