[{"Error Value": "Deprecated, get address from mirror wallet instead", "Error Type": "Exception", "Error": "An error occurred in getnewaddress"}]
I updated armoryd.py to use calculateAddrStr instead of getAddrStr. Is this the right fix? If so, I'll issue a pull request against the armoryd repo. Although it looks like that repo has been abandoned since there are still open pull requests.
my "fix"
# return addr.getAddrStr()
return addr.calculateAddrStr()
my request
curl http://xxx:[email protected]:18225 -d '{"method":"getnewaddress","params":[]}'
armoryd.py log
Traceback (most recent call last):
File "/usr/local/lib/armory/armoryengine/Decorators.py", line 79, in inner
rv = func(*args, **kwargs)
File "/usr/local/lib/armory/armoryd.py", line 877, in jsonrpc_getnewaddress
return addr.getAddrStr()
File "/usr/local/lib/armory/armoryengine/PyBtcAddress.py", line 161, in getAddrStr
raise Exception("Deprecated, get address from mirror wallet instead")
Exception: Deprecated, get address from mirror wallet instead
As an aside, this is not the standard use of the terminology "deprecated" in software. Deprecated functionality should give you warnings, not fail with errors. https://en.wikipedia.org/wiki/Deprecation