From 4b4516c67c891c97a175e71b00c5b85421718cc8 Mon Sep 17 00:00:00 2001 From: Vincenzo Palazzo Date: Fri, 17 May 2024 22:58:25 +0200 Subject: [PATCH] bcli: make last height optional This is on me, and the last height is optional, and not required, because sometimes you do not want wait the sync of the blockchain but just get the information of the current status. Signed-off-by: Vincenzo Palazzo --- plugins/bcli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/bcli.c b/plugins/bcli.c index 05e954ca4..0cd5f0fb2 100644 --- a/plugins/bcli.c +++ b/plugins/bcli.c @@ -804,7 +804,7 @@ static struct command_result *getchaininfo(struct command *cmd, * However, I currently don't have a better idea on how to handle this situation. */ u32 *height UNUSED; if (!param(cmd, buf, toks, - p_req("last_height", param_number, &height), + p_opt("last_height", param_number, &height), NULL)) return command_param_failed();