mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-03 10:46:58 +01:00
gossip: Remove redundant replaysize
Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
parent
96ad0e7044
commit
1b6db5fd52
1 changed files with 0 additions and 5 deletions
|
@ -11,10 +11,6 @@
|
|||
struct gossip_store {
|
||||
int fd;
|
||||
off_t read_pos, write_pos;
|
||||
|
||||
/* What was the size of the gossip_store when we started replaying
|
||||
* it? */
|
||||
__off_t replaysize;
|
||||
};
|
||||
|
||||
static void gossip_store_destroy(struct gossip_store *gs)
|
||||
|
@ -28,7 +24,6 @@ struct gossip_store *gossip_store_new(const tal_t *ctx)
|
|||
gs->fd = open(GOSSIP_STORE_FILENAME, O_RDWR|O_APPEND|O_CREAT, 0600);
|
||||
gs->read_pos = 0;
|
||||
gs->write_pos = lseek(gs->fd, 0, SEEK_END);
|
||||
gs->replaysize = gs->write_pos;
|
||||
|
||||
tal_add_destructor(gs, gossip_store_destroy);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue