mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 17:14:22 +01:00
gossip: Broadcasting and handling gossip messages
This commit is contained in:
committed by
Rusty Russell
parent
6363dd5ff6
commit
d93ce12afa
@@ -7,6 +7,7 @@
|
||||
#include "lightningd.h"
|
||||
#include "log.h"
|
||||
#include "opt_time.h"
|
||||
#include "p2p_announce.h"
|
||||
#include "peer.h"
|
||||
#include "routing.h"
|
||||
#include "secrets.h"
|
||||
@@ -552,6 +553,9 @@ int main(int argc, char *argv[])
|
||||
if (dstate->config.use_irc)
|
||||
setup_irc_connection(dstate);
|
||||
|
||||
/* set up P2P gossip protocol */
|
||||
setup_p2p_announce(dstate);
|
||||
|
||||
log_info(dstate->base_log, "Hello world!");
|
||||
|
||||
/* If we loaded peers from database, reconnect now. */
|
||||
|
||||
Reference in New Issue
Block a user