tFix floating point issue in getaddressbalance - electrum-personal-server - Maximally lightweight electrum server for a single user HTML git clone https://git.parazyd.org/electrum-personal-server DIR Log DIR Files DIR Refs DIR README --- DIR commit 79e96b9a6ac73e5dddaf7f23c4313d18bb496404 DIR parent dcdb893dff33d36bda7dbd2778100a3df8dcf06f HTML 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/tran… | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/electrumpersonalserver/server/transactionmonitor.py b/electrumpersonalserver/server/transactionmonitor.py t@@ -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: