From db0a28501b32683c9b5d39fb0e3b285b82db2dd4 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sat, 8 Jun 2019 11:57:24 +0930 Subject: [PATCH] gossip: bump version to remove lingering issues with master. There were several gossip breakages in master; bumping version means upgrades get a clean store (not just those upgrading from stable version). Fixes: #2719 Signed-off-by: Rusty Russell --- common/gossip_store.h | 2 +- tests/test_gossip.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/gossip_store.h b/common/gossip_store.h index 8153a9cc1..81dc8f779 100644 --- a/common/gossip_store.h +++ b/common/gossip_store.h @@ -10,7 +10,7 @@ struct per_peer_state; /** * gossip_store -- On-disk storage related information */ -#define GOSSIP_STORE_VERSION 5 +#define GOSSIP_STORE_VERSION 6 /** * Bit of length we use to mark a deleted record. diff --git a/tests/test_gossip.py b/tests/test_gossip.py index f631ce11c..867a44693 100644 --- a/tests/test_gossip.py +++ b/tests/test_gossip.py @@ -861,7 +861,7 @@ def test_gossip_store_load(node_factory): """Make sure we can read canned gossip store""" l1 = node_factory.get_node(start=False) with open(os.path.join(l1.daemon.lightning_dir, 'gossip_store'), 'wb') as f: - f.write(bytearray.fromhex("05" # GOSSIP_STORE_VERSION + f.write(bytearray.fromhex("06" # GOSSIP_STORE_VERSION "000001b0" # len "dc5bef89" # csum "5b8d9b44" # timestamp