1
0

Make use of trigger_callback easier to understand

This commit is contained in:
Neil Booth
2015-11-12 16:08:37 +09:00
parent 51ebdc5ce8
commit 206e38fb7c
3 changed files with 5 additions and 6 deletions

View File

@@ -129,7 +129,7 @@ class Synchronizer(ThreadJob):
self.print_error("received tx %s height: %d bytes: %d" %
(tx_hash, tx_height, len(tx.raw)))
# callbacks
self.network.trigger_callback('new_transaction', (tx,))
self.network.trigger_callback('new_transaction', tx)
if not self.requested_tx:
self.network.trigger_callback('updated')