make abandon_claim compatible with old function name

This commit is contained in:
Jack 2016-09-14 22:36:18 -04:00
parent b010192f8e
commit 4cc941fbec

View file

@ -2032,7 +2032,7 @@ class LBRYDaemon(jsonrpc.JSONRPC):
Args:
'txid': txid of claim, string
Return:
Confirmation message
txid
"""
if 'txid' in p.keys():
@ -2051,6 +2051,19 @@ class LBRYDaemon(jsonrpc.JSONRPC):
return d
def jsonrpc_abandon_name(self, p):
"""
DEPRECIATED, use abandon_claim
Args:
'txid': txid of claim, string
Return:
txid
"""
return self.jsonrpc_abandon_claim(p)
def jsonrpc_support_claim(self, p):
"""
Support a name claim