Author

Topic: "Deprecated" error when creating new address via armoryd.py (Read 133 times)

newbie
Activity: 11
Merit: 0
When I try to create a new address using armoryd.py, I'm seeing a the following error response:

Code:
[{"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"
Code:
     # return addr.getAddrStr()
      return addr.calculateAddrStr()

my request
Code:
curl http://xxx:[email protected]:18225 -d '{"method":"getnewaddress","params":[]}'

armoryd.py log
Code:
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
Jump to: