mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
gossip: Make gossip_store_append private
Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
committed by
Rusty Russell
parent
44e23b3773
commit
82e1f5ade1
@@ -46,8 +46,14 @@ struct gossip_store *gossip_store_new(const tal_t *ctx)
|
||||
|
||||
return gs;
|
||||
}
|
||||
|
||||
void gossip_store_append(struct gossip_store *gs, const u8 *msg)
|
||||
/**
|
||||
* Write an incoming message to the `gossip_store`
|
||||
*
|
||||
* @param gs The gossip_store to write to
|
||||
* @param msg The message to write
|
||||
* @return The newly created and initialized `gossip_store`
|
||||
*/
|
||||
static void gossip_store_append(struct gossip_store *gs, const u8 *msg)
|
||||
{
|
||||
u32 msglen = tal_len(msg);
|
||||
beint32_t belen = cpu_to_be32(msglen);
|
||||
|
||||
@@ -15,15 +15,6 @@ struct routing_state;
|
||||
|
||||
struct gossip_store *gossip_store_new(const tal_t *ctx);
|
||||
|
||||
/**
|
||||
* Write an incoming message to the `gossip_store`
|
||||
*
|
||||
* @param gs The gossip_store to write to
|
||||
* @param msg The message to write
|
||||
* @return The newly created and initialized `gossip_store`
|
||||
*/
|
||||
void gossip_store_append(struct gossip_store *gs, const u8 *msg);
|
||||
|
||||
/**
|
||||
* Retrieve the next gossip message if any
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user