forked from LBRYCommunity/lbry-sdk
wallet_balance --include-unconfirmed works now
This commit is contained in:
parent
6f1d2e7690
commit
17aee92dc9
1 changed files with 4 additions and 4 deletions
|
@ -1023,10 +1023,10 @@ class Daemon(AuthJSONRPCServer):
|
|||
Returns:
|
||||
(float) amount of lbry credits in wallet
|
||||
"""
|
||||
if address is None:
|
||||
return self.wallet.default_account.get_balance()
|
||||
else:
|
||||
return self.wallet.get_address_balance(address, include_unconfirmed)
|
||||
assert address is None, "Limiting by address needs to be re-implemented in new wallet."
|
||||
return self.wallet.default_account.get_balance(
|
||||
0 if include_unconfirmed else 6
|
||||
)
|
||||
|
||||
@requires(WALLET_COMPONENT)
|
||||
@defer.inlineCallbacks
|
||||
|
|
Loading…
Add table
Reference in a new issue