mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
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:
committed by
Christian Decker
parent
42d6bf564c
commit
db0a28501b
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user