add wrapper for getnamesintrie

-used for verifying db state against lbrycrd
This commit is contained in:
Jack Robison 2021-02-24 15:22:44 -05:00 committed by Victor Shyba
parent 1ff3ab4b83
commit eb0eacd404

View file

@ -364,6 +364,11 @@ class LBCDaemon(Daemon):
'''Given a name, returns the winning claim value.''' '''Given a name, returns the winning claim value.'''
return await self._send_single('getvalueforname', (name,)) return await self._send_single('getvalueforname', (name,))
@handles_errors
async def getnamesintrie(self):
'''Given a name, returns the winning claim value.'''
return await self._send_single('getnamesintrie')
@handles_errors @handles_errors
async def claimname(self, name, hexvalue, amount): async def claimname(self, name, hexvalue, amount):
'''Claim a name, used for functional tests only.''' '''Claim a name, used for functional tests only.'''