Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Qiao Jin committed Feb 2, 2021
1 parent 7057ec7 commit 9d8057b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/neo/Network/P2P/TaskManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9d8057b

Please sign in to comment.