Explorar el Código

fix type hint in _verify_single_sig

Malte Kraus hace 8 años
padre
commit
709f797647
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/transaction.py

+ 1 - 1
src/transaction.py

@@ -135,7 +135,7 @@ class Transaction:
                 return False
         return True
 
-    def _verify_single_sig(self, sig: str, inp: TransactionInput, chain: 'Blockchain') -> bool:
+    def _verify_single_sig(self, sig: bytes, inp: TransactionInput, chain: 'Blockchain') -> bool:
         """ Verifies the signature on a single input. """
         trans = chain.get_transaction_by_hash(inp.transaction_hash)
         if trans is None: