rpc: checkmessage return an error if pubkey is not found

Returning an warning message when the pub key is not specified and there is no node in the graph.

We try to help people that use core lightning as a signer and nothings else.

Changelog-Deprecated: rpc: checkmessage return an error when the pubkey is not specified and it is unknown in the network graph.
This commit is contained in:
Vincenzo Palazzo
2022-05-24 10:17:27 +02:00
committed by Christian Decker
parent 5abed486d0
commit 1d671a2380
4 changed files with 31 additions and 1 deletions

View File

@@ -100,6 +100,9 @@ static const errcode_t DATASTORE_UPDATE_WRONG_GENERATION = 1204;
static const errcode_t DATASTORE_UPDATE_HAS_CHILDREN = 1205;
static const errcode_t DATASTORE_UPDATE_NO_CHILDREN = 1206;
/* Errors from signmessage command */
static const errcode_t SIGNMESSAGE_PUBKEY_NOT_FOUND = 1301;
/* Errors from wait* commands */
static const errcode_t WAIT_TIMEOUT = 2000;