Skip to content

Commit

Permalink
Ensure txs are cleared before Blockchain actor (neo-project#1166)
Browse files Browse the repository at this point in the history
  • Loading branch information
vncoelho authored and Tommo-L committed Jun 22, 2020
1 parent 964c9c9 commit 78e1406
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions neo/Ledger/MemoryPool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -365,11 +365,11 @@ internal void UpdatePoolForBlockPersisted(Block block, Snapshot snapshot)
if (item.Tx.FeePerByte >= _feePerByte)
tx.Add(item.Tx);

if (tx.Count > 0)
_system.Blockchain.Tell(tx.ToArray(), ActorRefs.NoSender);

_unverifiedTransactions.Clear();
_unverifiedSortedTransactions.Clear();

if (tx.Count > 0)
_system.Blockchain.Tell(tx.ToArray(), ActorRefs.NoSender);
}
}
finally
Expand Down

0 comments on commit 78e1406

Please sign in to comment.