blocknetdx / blocknet

Official Blocknet cryptocurrency wallet
https://www.blocknet.org
MIT License
214 stars 95 forks source link

dxSplitAddress returns incorrect error content if wallet is locked #596

Open shrnkld opened 2 years ago

shrnkld commented 2 years ago

Env: Blocknet core 4.3.3 public

Steps to reproduce:

  1. via console enter cmd: dxsplitaddress BLOCK amount address
  2. if the wallet is currently locked the error is returned as:
    {
    "error": "Bad Request address is invalid or not in the wallet for token BLOCK",
    "code": 1004,
    "name": "dxSplitAddress"
    }

Expected:

  1. return:
    {
    "error": "Address split is not possible when the wallet is locked for token BLOCK. Please unlock the wallet and try again.",
    "code": ???,
    "name": "dxSplitAddress"
    }