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

@@ -20,6 +20,10 @@ known node key (as per *listnodes*), and verification succeeds if it
matches for any one of them. Note: this is implemented far more
efficiently than trying each one, so performance is not a concern.
On failure, an error is returned and core lightning exit with the following error code:
- -32602: Parameter missed or malformed;
- 1301: *pubkey* not found in the graph.
RETURN VALUE
------------