diff --git a/neo/Implementations/Blockchains/LevelDB/LevelDBBlockchain.py b/neo/Implementations/Blockchains/LevelDB/LevelDBBlockchain.py
index <HASH>..<HASH> 100644
--- a/neo/Implementations/Blockchains/LevelDB/LevelDBBlockchain.py
+++ b/neo/Implementations/Blockchains/LevelDB/LevelDBBlockchain.py
@@ -812,8 +812,8 @@ class LevelDBBlockchain(Blockchain):
 
             self.TXProcessed += len(block.Transactions)
 
-            for event in to_dispatch:
-                events.emit(event.event_type, event)
+        for event in to_dispatch:
+            events.emit(event.event_type, event)
 
     def PersistBlocks(self):
Process events after write_batch() commit

* Fixed a bug with smart contract events not being able to lookup the current block being processed due to the fact that the block persistence hasn't finalized via write_batch() commit. Events are now emitted after the commit, so that blocks can be looked up.

fixes #<I>