fix getclaimsfortx in server

This commit is contained in:
Victor Shyba 2019-01-17 15:58:25 -03:00 committed by Lex Berezhny
parent 0dfb5e008d
commit 899b182811

View file

@ -37,7 +37,7 @@ class LBCDaemon(Daemon):
@handles_errors
async def getclaimsfortx(self, txid):
'''Given a txid, returns the claims it make.'''
return await self._send_single('getclaimsfortx', (txid,))
return await self._send_single('getclaimsfortx', (txid,)) or []
@handles_errors
async def getnameproof(self, name, block_hash=None):