Added new deterministic address and subscription-related commands #163

Merged
Atheros1 merged 4 commits from master into master 2013-05-24 23:08:11 +02:00
Showing only changes of commit 204f1fe52c - Show all commits

View File

@ -3798,6 +3798,10 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
if len(params) == 2:
address, label = params
label = label.decode('base64')
try:
label.decode('utf-8')
except UnicodeDecodeError:
return 'API Error 0017: Label is not valid UTF-8 data.'
if len(params) >2:
return 'API Error 0000: I need either 1 or 2 parameters!'
address = addBMIfNotPresent(address)