transaction verification is fixed

Signed-off-by: yevh-berdnyk <ie.berdnyk@gmail.com>
This commit is contained in:
Anton Danchenko 2018-06-04 16:51:25 +03:00 committed by yevh-berdnyk
parent 75d1c04412
commit b38dd8f013
No known key found for this signature in database
GPG Key ID: E9B425FDFC4DEA9C
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ class NetworkApi:
info('Looking for a transaction with unique amount %s in list of transactions, address is %s' % info('Looking for a transaction with unique amount %s in list of transactions, address is %s' %
(amount, address)) (amount, address))
for transaction in transactions: for transaction in transactions:
if int(float(amount) * 10 ** 18) == int(transaction['value']): if float(int(transaction['value']) / 10 ** 18) == float(amount):
info('Transaction with unique amount %s is found in list of transactions, address is %s' % info('Transaction with unique amount %s is found in list of transactions, address is %s' %
(amount, address)) (amount, address))
return return