mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 23:54:22 +01:00
gossip: Moving to intmap-based broadcast for the legacy daemon
Moved the broadcast functionality to broadcast.[ch]. So far this includes only the enqueuing side of broadcasts, the dequeuing and actual push to the peer is daemon dependent. This also adds the broadcast_state to the routing_state and the last broadcast index to the peer for the legacy daemon.
This commit is contained in:
committed by
Rusty Russell
parent
3aa45a6d0b
commit
76e2c980e1
@@ -2,6 +2,7 @@
|
||||
#define LIGHTNING_DAEMON_ROUTING_H
|
||||
#include "config.h"
|
||||
#include "bitcoin/pubkey.h"
|
||||
#include "daemon/broadcast.h"
|
||||
#include "wire/wire.h"
|
||||
#include <ccan/htable/htable_type.h>
|
||||
|
||||
@@ -83,6 +84,8 @@ struct routing_state {
|
||||
struct node_map *nodes;
|
||||
|
||||
struct log *base_log;
|
||||
|
||||
struct broadcast_state *broadcasts;
|
||||
};
|
||||
|
||||
//FIXME(cdecker) The log will have to be replaced for the new subdaemon, keeping for now to keep changes small.
|
||||
|
||||
Reference in New Issue
Block a user