mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-04 23:04:35 +01:00
lightningd: remove deprecated behavior where checkmessage would fail quietly.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-Removed: JSON-RPC: `checkmessage` now always returns an error when the pubkey is not specified and it is unknown in the network graph (deprecated v0.12.0)
This commit is contained in:
@@ -134,9 +134,10 @@ static void listnodes_done(const char *buffer,
|
||||
if (t)
|
||||
t = json_get_member(buffer, t, "nodes");
|
||||
|
||||
if (!deprecated_apis && (!t || t->size == 0)) {
|
||||
response = json_stream_fail(can->cmd, SIGNMESSAGE_PUBKEY_NOT_FOUND,
|
||||
"pubkey not found in the graph");
|
||||
if (!t || t->size == 0) {
|
||||
response = json_stream_fail(can->cmd,
|
||||
SIGNMESSAGE_PUBKEY_NOT_FOUND,
|
||||
"pubkey not found in the graph");
|
||||
json_add_node_id(response, "claimed_key", &can->id);
|
||||
json_object_end(response);
|
||||
was_pending(command_failed(can->cmd, response));
|
||||
|
||||
Reference in New Issue
Block a user