mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-04 14:54:26 +01:00
JSON: remove handling of pre-Adelaide (B:T:N) short_channel_ids.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
714e7fb670
commit
acf3952acc
@@ -353,8 +353,7 @@ static struct command_result *json_getroute(struct command *cmd,
|
||||
json_for_each_arr(i, t, excludetok) {
|
||||
if (!short_channel_id_dir_from_str(buffer + t->start,
|
||||
t->end - t->start,
|
||||
&excluded[i],
|
||||
deprecated_apis)) {
|
||||
&excluded[i])) {
|
||||
return command_fail(cmd, JSONRPC2_INVALID_PARAMS,
|
||||
"%.*s is not a valid"
|
||||
" short_channel_id/direction",
|
||||
@@ -548,8 +547,7 @@ static struct command_result *json_dev_query_scids(struct command *cmd,
|
||||
|
||||
scids = tal_arr(cmd, struct short_channel_id, scidstok->size);
|
||||
json_for_each_arr(i, t, scidstok) {
|
||||
if (!json_to_short_channel_id(buffer, t, &scids[i],
|
||||
deprecated_apis)) {
|
||||
if (!json_to_short_channel_id(buffer, t, &scids[i])) {
|
||||
return command_fail(cmd, JSONRPC2_INVALID_PARAMS,
|
||||
"scid %zu '%.*s' is not an scid",
|
||||
i, json_tok_full_len(t),
|
||||
|
||||
Reference in New Issue
Block a user