Fix a bug during transaction validation
Missing method call - caused an exception
This commit is contained in:
@@ -30,7 +30,7 @@ class Transaction:
|
|||||||
self.sender + \
|
self.sender + \
|
||||||
self.receiver + \
|
self.receiver + \
|
||||||
self.amount.to_bytes(8, "big") + \
|
self.amount.to_bytes(8, "big") + \
|
||||||
self.transaction_fee(8, "big")
|
self.transaction_fee.to_bytes(8, "big")
|
||||||
try:
|
try:
|
||||||
sender_pubkey.verify(self.signature, msg)
|
sender_pubkey.verify(self.signature, msg)
|
||||||
except InvalidSignature:
|
except InvalidSignature:
|
||||||
|
|||||||
Reference in New Issue
Block a user