mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 17:14:22 +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:
@@ -233,6 +233,9 @@ static void check_config(struct lightningd_state *dstate)
|
|||||||
"Warning: forever-confirms of %u is less than 100!",
|
"Warning: forever-confirms of %u is less than 100!",
|
||||||
dstate->config.forever_confirms);
|
dstate->config.forever_confirms);
|
||||||
|
|
||||||
|
if (dstate->config.anchor_confirms == 0)
|
||||||
|
fatal("anchor-confirms must be greater than zero");
|
||||||
|
|
||||||
/* BOLT #2:
|
/* BOLT #2:
|
||||||
*
|
*
|
||||||
* a node MUST estimate the deadline for successful redemption
|
* a node MUST estimate the deadline for successful redemption
|
||||||
|
|||||||
Reference in New Issue
Block a user