add category attribute in JSON RPC output for backwards compatibility

This commit is contained in:
Lex Berezhny 2018-10-12 11:08:01 -04:00
parent 64913c4288
commit 8a6e6b4d77

View file

@ -80,6 +80,9 @@ class JSONResponseEncoder(JSONEncoder):
else: else:
output['type'] = 'basic' output['type'] = 'basic'
# deprecated, will be removed after 0.30 release
output['category'] = output['type']
return output return output
def encode_input(self, txi): def encode_input(self, txi):