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:
|
Returns:
|
||||||
(float) amount of lbry credits in wallet
|
(float) amount of lbry credits in wallet
|
||||||
"""
|
"""
|
||||||
if address is None:
|
assert address is None, "Limiting by address needs to be re-implemented in new wallet."
|
||||||
return self.wallet.default_account.get_balance()
|
return self.wallet.default_account.get_balance(
|
||||||
else:
|
0 if include_unconfirmed else 6
|
||||||
return self.wallet.get_address_balance(address, include_unconfirmed)
|
)
|
||||||
|
|
||||||
@requires(WALLET_COMPONENT)
|
@requires(WALLET_COMPONENT)
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
|
|
Loading…
Add table
Reference in a new issue