rgb-cln/common/gossip_store.h

20 lines
495 B
C

#ifndef LIGHTNING_COMMON_GOSSIP_STORE_H
#define LIGHTNING_COMMON_GOSSIP_STORE_H
#include "config.h"
#include <ccan/short_types/short_types.h>
#include <ccan/tal/tal.h>
/**
* gossip_store -- On-disk storage related information
*/
#define GOSSIP_STORE_VERSION 4
/**
* Direct store accessor: loads gossip msg from store.
*
* Doesn't return; status_failed() on error.
*/
u8 *gossip_store_read(const tal_t *ctx, int gossip_store_fd, u64 offset);
#endif /* LIGHTNING_COMMON_GOSSIP_STORE_H */