mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-01 09:45:18 +00:00
replace instances of get_unspent_coins
This commit is contained in:
parent
a99c2bc9fa
commit
43b8e202fd
1 changed files with 2 additions and 2 deletions
|
@ -146,7 +146,7 @@ class Commands:
|
||||||
return self.network.synchronous_get([ ('blockchain.address.get_history',[addr]) ])[0]
|
return self.network.synchronous_get([ ('blockchain.address.get_history',[addr]) ])[0]
|
||||||
|
|
||||||
def listunspent(self):
|
def listunspent(self):
|
||||||
l = copy.deepcopy(self.wallet.get_unspent_coins())
|
l = copy.deepcopy(self.wallet.get_spendable_coins())
|
||||||
for i in l: i["value"] = str(Decimal(i["value"])/100000000)
|
for i in l: i["value"] = str(Decimal(i["value"])/100000000)
|
||||||
return l
|
return l
|
||||||
|
|
||||||
|
@ -159,7 +159,7 @@ class Commands:
|
||||||
return {'address':r[0] }
|
return {'address':r[0] }
|
||||||
|
|
||||||
def createrawtransaction(self, inputs, outputs):
|
def createrawtransaction(self, inputs, outputs):
|
||||||
coins = self.wallet.get_unspent_coins(None)
|
coins = self.wallet.get_spendable_coins(None)
|
||||||
tx_inputs = []
|
tx_inputs = []
|
||||||
for i in inputs:
|
for i in inputs:
|
||||||
prevout_hash = i['txid']
|
prevout_hash = i['txid']
|
||||||
|
|
Loading…
Add table
Reference in a new issue