gossip: Broadcasting and handling gossip messages

This commit is contained in:
Christian Decker
2016-12-21 17:15:35 +01:00
committed by Rusty Russell
parent 6363dd5ff6
commit d93ce12afa
5 changed files with 346 additions and 0 deletions

View File

@@ -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. */