From 24602459b14c845bf985688242c81a998b0e309d Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 22 Jan 2016 06:41:49 +1030 Subject: [PATCH] daemon/config: add testnet. Signed-off-by: Rusty Russell --- daemon/lightningd.c | 3 +++ daemon/lightningd.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/daemon/lightningd.c b/daemon/lightningd.c index ff6d0ccf9..4eed41b46 100644 --- a/daemon/lightningd.c +++ b/daemon/lightningd.c @@ -87,6 +87,9 @@ static void config_register_opts(struct lightningd_state *state) static void default_config(struct config *config) { + /* aka. "Dude, where's my coins?" */ + config->testnet = true; + /* One day to catch cheating attempts. */ config->rel_locktime = 60 * 60 * 24; diff --git a/daemon/lightningd.h b/daemon/lightningd.h index 9e3958868..4e4ef49ab 100644 --- a/daemon/lightningd.h +++ b/daemon/lightningd.h @@ -10,6 +10,9 @@ /* Various adjustable things. */ struct config { + /* Are we on testnet? */ + bool testnet; + /* How long do we want them to lock up their funds? (seconds) */ u32 rel_locktime;