mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
deep copy output to prevent side-effect
This commit is contained in:
parent
9afe0d8aaf
commit
2cb5b14b9b
1 changed files with 2 additions and 1 deletions
|
@ -121,7 +121,8 @@ class Commands:
|
|||
return h
|
||||
|
||||
def listunspent(self):
|
||||
l = self.wallet.get_unspent_coins()
|
||||
import copy
|
||||
l = copy.deepcopy(self.wallet.get_unspent_coins())
|
||||
for i in l: i["value"] = i["value"]*1e-8
|
||||
return l
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue