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 <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2019-06-08 11:57:24 +09:30
committed by Christian Decker
parent 42d6bf564c
commit db0a28501b
2 changed files with 2 additions and 2 deletions

View File

@@ -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.

View File

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