From 639eddf840f85c696a495a17ad11645a6d577eb8 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 20 Oct 2020 14:30:30 +1030 Subject: [PATCH] common/gossmap: digest private channel information too. Signed-off-by: Rusty Russell --- common/gossmap.c | 4 ++++ tests/test_gossip.py | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/common/gossmap.c b/common/gossmap.c index 29256c9b2..baed7ea93 100644 --- a/common/gossmap.c +++ b/common/gossmap.c @@ -602,8 +602,12 @@ static bool map_catchup(struct gossmap *map) type = map_be16(map, off); if (type == WIRE_CHANNEL_ANNOUNCEMENT) add_channel(map, off); + else if (type == WIRE_GOSSIP_STORE_PRIVATE_CHANNEL) + add_channel(map, off + 2 + 8 + 2); else if (type == WIRE_CHANNEL_UPDATE) update_channel(map, off); + else if (type == WIRE_GOSSIP_STORE_PRIVATE_UPDATE) + update_channel(map, off + 2 + 2); else if (type == WIRE_GOSSIP_STORE_DELETE_CHAN) remove_channel_by_deletemsg(map, off); else if (type == WIRE_NODE_ANNOUNCEMENT) diff --git a/tests/test_gossip.py b/tests/test_gossip.py index 62d6acb09..3838c1a89 100644 --- a/tests/test_gossip.py +++ b/tests/test_gossip.py @@ -1777,7 +1777,6 @@ def test_gossip_store_upgrade_v7_v8(node_factory): 'features': '80000000000000000000000000'}] -@pytest.mark.xfail(strict=True) @unittest.skipIf(not DEVELOPER, "devtools are for devs anyway") def test_routetool(node_factory): """Test that route tool can see unpublished channels"""