mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 15:44:21 +01:00
gossip: fix default broadcast interval, move option.
This now makes a few more gossip tests time out without --dev-broadcast-interval Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
171ce689dc
commit
7e0bc88e2a
@@ -290,8 +290,8 @@ static void dev_register_opts(struct lightningd *ld)
|
||||
opt_register_arg("--dev-debugger=<subdaemon>", opt_subd_debug, NULL,
|
||||
ld, "Wait for gdb attach at start of <subdaemon>");
|
||||
opt_register_arg("--dev-broadcast-interval=<ms>", opt_set_uintval,
|
||||
opt_show_uintval, &ld->broadcast_interval,
|
||||
"Time between gossip broadcasts in milliseconds (default: 30000)");
|
||||
opt_show_uintval, &ld->config.broadcast_interval,
|
||||
"Time between gossip broadcasts in milliseconds");
|
||||
opt_register_arg("--dev-disconnect=<filename>", opt_subd_dev_disconnect,
|
||||
NULL, ld, "File containing disconnection points");
|
||||
opt_register_arg("--dev-hsm-seed=<seed>", opt_set_hsm_seed,
|
||||
@@ -351,6 +351,10 @@ static const struct config testnet_config = {
|
||||
/* Take 0.001% */
|
||||
.fee_per_satoshi = 10,
|
||||
|
||||
/* BOLT #7:
|
||||
* Each node SHOULD flush outgoing announcements once every 60 seconds */
|
||||
.broadcast_interval = 60000,
|
||||
|
||||
/* Automatically reconnect */
|
||||
.no_reconnect = false,
|
||||
};
|
||||
@@ -416,6 +420,10 @@ static const struct config mainnet_config = {
|
||||
/* Take 0.001% */
|
||||
.fee_per_satoshi = 10,
|
||||
|
||||
/* BOLT #7:
|
||||
* Each node SHOULD flush outgoing announcements once every 60 seconds */
|
||||
.broadcast_interval = 60000,
|
||||
|
||||
/* Automatically reconnect */
|
||||
.no_reconnect = false,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user