mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
lightningd: allow "NNblocks" and "minimum" as feerates.
And consolidate descriptions into lightning-feerates(). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-Added: JSON-RPC: `close`, `fundchannel`, `fundpsbt`, `multifundchannel`, `multiwithdraw`, `txprepare`, `upgradewallet`, `withdraw` now allow "minimum" and NN"blocks" as `feerate` (`feerange` for `close`).
This commit is contained in:
@@ -295,7 +295,7 @@ def _extra_validator(is_request: bool):
|
||||
return True
|
||||
if not checker.is_type(instance, "string"):
|
||||
return False
|
||||
if instance in ("urgent", "normal", "slow"):
|
||||
if instance in ("urgent", "normal", "slow", "minimum"):
|
||||
return True
|
||||
if instance in ("opening", "mutual_close", "unilateral_close", "delayed_to_us", "htlc_resolution", "penalty", "min_acceptable", "max_acceptable"):
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user