Skip to content

Commit

Permalink
Code optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
Jin Qiao committed Apr 21, 2020
1 parent a485624 commit 4a5e41d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/neo/Ledger/Blockchain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -367,11 +367,11 @@ private VerifyResult OnNewBlock(Block block)
Self.Tell(unverifiedBlock, ActorRefs.NoSender);
block_cache_unverified.Remove(Height + 1);
}
block_cache.Add(block.Hash, block);
block_cache[block.Hash] = block;
}
else
{
block_cache.Add(block.Hash, block);
block_cache[block.Hash] = block;
if (block.Index + 100 >= header_index.Count)
system.LocalNode.Tell(new LocalNode.RelayDirectly { Inventory = block });
if (block.Index == header_index.Count)
Expand Down

0 comments on commit 4a5e41d

Please sign in to comment.