mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-10 01:24:30 +01:00
daemon/config: add testnet.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user