mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-03 12:30:07 +00:00
use Decimal in listunspent
This commit is contained in:
parent
3eb746db5c
commit
7bf1a6248e
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ class Commands:
|
||||||
def listunspent(self):
|
def listunspent(self):
|
||||||
import copy
|
import copy
|
||||||
l = copy.deepcopy(self.wallet.get_unspent_coins())
|
l = copy.deepcopy(self.wallet.get_unspent_coins())
|
||||||
for i in l: i["value"] = i["value"]*1e-8
|
for i in l: i["value"] = str(Decimal(i["value"])/100000000)
|
||||||
return l
|
return l
|
||||||
|
|
||||||
def createrawtransaction(self, inputs, outputs):
|
def createrawtransaction(self, inputs, outputs):
|
||||||
|
|
Loading…
Add table
Reference in a new issue