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:
Rusty Russell
2025-10-01 10:49:43 +09:30
parent d8db51d879
commit 907f7c6698
10 changed files with 730 additions and 1047 deletions

View File

@@ -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)));

View File

@@ -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)));