forked from LBRYCommunity/lbry-sdk
Merge pull request #159 from lbryio/rename-abandon-name
Include unconfirmed balance and rename abandon_name
This commit is contained in:
commit
4dacc52ecb
2 changed files with 2 additions and 5 deletions
|
@ -1235,8 +1235,7 @@ class LBRYumWallet(LBRYWallet):
|
||||||
accounts = None
|
accounts = None
|
||||||
exclude_claimtrietx = True
|
exclude_claimtrietx = True
|
||||||
d = threads.deferToThread(func, accounts, exclude_claimtrietx)
|
d = threads.deferToThread(func, accounts, exclude_claimtrietx)
|
||||||
d.addCallback(lambda result: result['confirmed'])
|
d.addCallback(lambda result: Decimal(result['confirmed']) + Decimal(result.get('unconfirmed', 0.0)))
|
||||||
d.addCallback(Decimal)
|
|
||||||
return d
|
return d
|
||||||
|
|
||||||
def get_new_address(self):
|
def get_new_address(self):
|
||||||
|
|
|
@ -389,8 +389,6 @@ class LBRYDaemon(jsonrpc.JSONRPC):
|
||||||
|
|
||||||
def _responseFailed(self, err, call):
|
def _responseFailed(self, err, call):
|
||||||
log.debug(err.getTraceback())
|
log.debug(err.getTraceback())
|
||||||
if call.active():
|
|
||||||
call.cancel()
|
|
||||||
|
|
||||||
def render(self, request):
|
def render(self, request):
|
||||||
request.content.seek(0, 0)
|
request.content.seek(0, 0)
|
||||||
|
@ -2018,7 +2016,7 @@ class LBRYDaemon(jsonrpc.JSONRPC):
|
||||||
|
|
||||||
return d
|
return d
|
||||||
|
|
||||||
def jsonrpc_abandon_name(self, p):
|
def jsonrpc_abandon_claim(self, p):
|
||||||
"""
|
"""
|
||||||
Abandon a name and reclaim credits from the claim
|
Abandon a name and reclaim credits from the claim
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue