unit tests: update all the gossmaps to have the GOSSIP_STORE_COMPLETED_BIT set.
Mostly this meant running them, then running devtools/convert-gossmap and replacing the code. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -351,7 +351,7 @@ static void write_to_store(int store_fd, const u8 *msg)
|
||||
{
|
||||
struct gossip_hdr hdr;
|
||||
|
||||
hdr.flags = cpu_to_be16(0);
|
||||
hdr.flags = cpu_to_be16(GOSSIP_STORE_COMPLETED_BIT);
|
||||
hdr.len = cpu_to_be16(tal_count(msg));
|
||||
hdr.timestamp = 0;
|
||||
hdr.crc = cpu_to_be32(crc32c(be32_to_cpu(hdr.timestamp), msg, tal_count(msg)));
|
||||
|
||||
@@ -348,7 +348,7 @@ static void write_to_store(int store_fd, const u8 *msg)
|
||||
{
|
||||
struct gossip_hdr hdr;
|
||||
|
||||
hdr.flags = cpu_to_be16(0);
|
||||
hdr.flags = cpu_to_be16(GOSSIP_STORE_COMPLETED_BIT);
|
||||
hdr.len = cpu_to_be16(tal_count(msg));
|
||||
hdr.timestamp = 0;
|
||||
hdr.crc = cpu_to_be32(crc32c(be32_to_cpu(hdr.timestamp), msg, tal_count(msg)));
|
||||
|
||||
Reference in New Issue
Block a user