From 8c8fa2cecddaa7f6388dfcce3500a963db7ed161 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 7 Oct 2016 14:00:16 +1030 Subject: [PATCH] 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 --- daemon/lightningd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/daemon/lightningd.c b/daemon/lightningd.c index c0635e530..96d801f99 100644 --- a/daemon/lightningd.c +++ b/daemon/lightningd.c @@ -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