Skip to content

Commit

Permalink
remove commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Luchuan committed Nov 19, 2019
1 parent 6b9b849 commit c1bec9e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions neo.UnitTests/Ledger/UT_MemoryPool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ public void BlockPersistAndReverificationWillAbandonTxAsBalanceTransfered()
BigInteger balance = NativeContract.GAS.BalanceOf(snapshot, sender);
ApplicationEngine applicationEngine = new ApplicationEngine(TriggerType.All, block, snapshot, (long)balance);
NativeContract.GAS.Burn(applicationEngine, sender, balance);
snapshot.Commit();

// Persist block and reverify all the txs in mempool, but all the txs will be discarded
_unit.UpdatePoolForBlockPersisted(block, snapshot);
Expand All @@ -235,7 +234,6 @@ public void BlockPersistAndReverificationWillAbandonTxAsBalanceTransfered()

// Withdraw the GAS by minting gas to the sender
NativeContract.GAS.Mint(applicationEngine, sender, balance);
snapshot.Commit();
}

private void VerifyTransactionsSortedDescending(IEnumerable<Transaction> transactions)
Expand Down

0 comments on commit c1bec9e

Please sign in to comment.