fixed tutorial needed for final assignment

This commit is contained in:
Ryan Bakkes 2023-11-10 11:46:14 +01:00
parent 2fc18580b5
commit b5520ec9cc

View File

@ -35,6 +35,10 @@ class TxBlock (CBlock):
if not tx.is_valid():
return False
if self.nonce != "A random nonce":
if not self.good_nonce():
return False
total_in, total_out = self.__count_totals()
Tx_Balance = round(total_out - total_in, 10)