mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01: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
@ -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…
Reference in New Issue
Block a user