diff --git a/common/json_tok.c b/common/json_tok.c index 8c7952157..1fd62a853 100644 --- a/common/json_tok.c +++ b/common/json_tok.c @@ -355,7 +355,7 @@ struct command_result *param_feerate_val(struct command *cmd, buffer + base.start); } - if (json_tok_streq(buffer, &suffix, "") + if (suffix.end == suffix.start || json_tok_streq(buffer, &suffix, feerate_style_name(FEERATE_PER_KBYTE))) { style = FEERATE_PER_KBYTE;