commit 79e96b9a6ac73e5dddaf7f23c4313d18bb496404 parent dcdb893dff33d36bda7dbd2778100a3df8dcf06f Author: chris-belcher <chris-belcher@users.noreply.github.com> Date: Tue, 23 Feb 2021 23:29:43 +0000 Fix floating point issue in getaddressbalance Fixes issue #219 Diffstat:
M | electrumpersonalserver/server/transactionmonitor.py | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/electrumpersonalserver/server/transactionmonitor.py b/electrumpersonalserver/server/transactionmonitor.py @@ -73,7 +73,7 @@ class TransactionMonitor(object): confirmed_balance = 0 unconfirmed_balance = 0 for utxo in utxos.values(): - value = int(Decimal(utxo[0]) * Decimal(1e8)) + value = int(Decimal(str(utxo[0])) * Decimal(1e8)) if utxo[1] > 0: confirmed_balance += value else: