common: remove unused push bit.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -29,11 +29,6 @@ struct gossip_rcvd_filter;
|
||||
*/
|
||||
#define GOSSIP_STORE_DELETED_BIT 0x8000U
|
||||
|
||||
/**
|
||||
* Bit of flags we use to mark an important record.
|
||||
*/
|
||||
#define GOSSIP_STORE_PUSH_BIT 0x4000U
|
||||
|
||||
/**
|
||||
* Bit of flags used to mark a channel announcement closed (not deleted for 12 blocks)
|
||||
*/
|
||||
|
||||
@@ -67,20 +67,18 @@ int main(int argc, char *argv[])
|
||||
u16 flags = be16_to_cpu(hdr.flags);
|
||||
u16 msglen = be16_to_cpu(hdr.len);
|
||||
u8 *msg, *inner;
|
||||
bool deleted, push, dying;
|
||||
bool deleted, dying;
|
||||
u32 blockheight;
|
||||
|
||||
deleted = (flags & GOSSIP_STORE_DELETED_BIT);
|
||||
push = (flags & GOSSIP_STORE_PUSH_BIT);
|
||||
dying = (flags & GOSSIP_STORE_DYING_BIT);
|
||||
|
||||
msg = tal_arr(NULL, u8, msglen);
|
||||
if (read(fd, msg, msglen) != msglen)
|
||||
errx(1, "%zu: Truncated file?", off);
|
||||
|
||||
printf("%zu: %s%s%s%s", off,
|
||||
printf("%zu: %s%s%s", off,
|
||||
deleted ? "DELETED " : "",
|
||||
push ? "PUSH " : "",
|
||||
dying ? "DYING " : "",
|
||||
be32_to_cpu(hdr.crc) != crc32c(be32_to_cpu(hdr.timestamp), msg, msglen) ? "**BAD CHECKSUM** " : "");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user