mirror of
https://github.com/ElementsProject/lightning.git
synced 2026-08-18 13:08:13 +02:00
config: make sure that anchor-confirms is non-zero.
We don't actually look into mempool, so setting zero is misleading. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
a19762b55c
commit
8c8fa2cecd
1 changed files with 3 additions and 0 deletions
|
|
@ -233,6 +233,9 @@ static void check_config(struct lightningd_state *dstate)
|
|||
"Warning: forever-confirms of %u is less than 100!",
|
||||
dstate->config.forever_confirms);
|
||||
|
||||
if (dstate->config.anchor_confirms == 0)
|
||||
fatal("anchor-confirms must be greater than zero");
|
||||
|
||||
/* BOLT #2:
|
||||
*
|
||||
* a node MUST estimate the deadline for successful redemption
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue