fix claim_list
This commit is contained in:
parent
101a3f2b22
commit
2bb4052193
1 changed files with 2 additions and 3 deletions
|
@ -2489,8 +2489,7 @@ class Daemon(AuthJSONRPCServer):
|
||||||
)
|
)
|
||||||
|
|
||||||
@requires(WALLET_COMPONENT)
|
@requires(WALLET_COMPONENT)
|
||||||
@defer.inlineCallbacks
|
async def jsonrpc_claim_list(self, name):
|
||||||
def jsonrpc_claim_list(self, name):
|
|
||||||
"""
|
"""
|
||||||
List current claims and information about them for a given name
|
List current claims and information about them for a given name
|
||||||
|
|
||||||
|
@ -2522,7 +2521,7 @@ class Daemon(AuthJSONRPCServer):
|
||||||
'last_takeover_height': (int) the height of last takeover for the name
|
'last_takeover_height': (int) the height of last takeover for the name
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
claims = yield self.wallet_manager.get_claims_for_name(name) # type: dict
|
claims = await self.wallet_manager.get_claims_for_name(name) # type: dict
|
||||||
sort_claim_results(claims['claims'])
|
sort_claim_results(claims['claims'])
|
||||||
return claims
|
return claims
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue