Selaa lähdekoodia

fix typo when receiving transactions

Malte Kraus 8 vuotta sitten
vanhempi
sitoutus
67ec54044b
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/protocol.py

+ 1 - 1
src/protocol.py

@@ -253,7 +253,7 @@ class Protocol:
     def received_transaction(self, transaction, _):
     def received_transaction(self, transaction, _):
         """ Someone sent us a transaction. """
         """ Someone sent us a transaction. """
         for handler in self.trans_receive_handlers:
         for handler in self.trans_receive_handlers:
-            handler(Transaction.from_json_compatible(block))
+            handler(Transaction.from_json_compatible(transaction))
 
 
     def send_block_request(self, block_hash: bytes):
     def send_block_request(self, block_hash: bytes):
         """ Sends a request for a block to all our peers. """
         """ Sends a request for a block to all our peers. """