Skip to content

Commit

Permalink
Differentiate the blockchain server error messages, so the latter one…
Browse files Browse the repository at this point in the history
… is not mistabeable for the pre-check about no connected blockchain server.
  • Loading branch information
rt121212121 committed Nov 17, 2022
1 parent 2c49f75 commit f562494
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion electrumsv/nodeapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,8 @@ async def jsonrpc_getnewaddress_async(request: web.Request, request_id: RequestI
# the unmonitored and never returned payment request should expire.
raise web.HTTPInternalServerError(headers={ "Content-Type": "application/json" },
text=json.dumps(ResponseDict(id=request_id, result=None,
error=ErrorDict(code=WALLET_ERROR, message="No connected blockchain server"))))
error=ErrorDict(code=WALLET_ERROR,
message="Blockchain server address monitoring request not successful"))))

# We do not want to continue until the tip filter registration is successfully placed with
# the blockchain server.
Expand Down

0 comments on commit f562494

Please sign in to comment.