Browse Source

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>
ppa-0.6.1
Rusty Russell 8 years ago
parent
commit
8c8fa2cecd
  1. 3
      daemon/lightningd.c

3
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

Loading…
Cancel
Save