mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 23:54:22 +01:00
feerate: allow names 'urgent' 'normal' and 'slow'.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
e0952ceff2
commit
db3c387264
@@ -266,6 +266,11 @@ bool json_tok_feerate(struct command *cmd, const char *name,
|
||||
enum feerate_style style;
|
||||
unsigned int num;
|
||||
|
||||
for (size_t i = 0; i < NUM_FEERATES; i++) {
|
||||
if (json_tok_streq(buffer, tok, feerate_name(i)))
|
||||
return json_feerate_estimate(cmd, feerate, i);
|
||||
}
|
||||
|
||||
/* We have to split the number and suffix. */
|
||||
suffix.start = suffix.end;
|
||||
while (suffix.start > base.start && !isdigit(buffer[suffix.start-1])) {
|
||||
|
||||
Reference in New Issue
Block a user