mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-21 05:54:20 +01:00
openingd: fix hangup when gossipd compacts.
My raspberry pi node hung up on my other node: lightning_openingd-... chan #1: Got bad message from gossipd: 0db1 This is because we didn't handle that message in one path. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
neil saitug
parent
664916e815
commit
6ee2cd8ce3
@@ -1080,3 +1080,18 @@ def test_gossip_store_private_channels(node_factory, bitcoind):
|
||||
# We should still see local channels!
|
||||
chans = l1.rpc.listchannels()['channels']
|
||||
assert len(chans) == 2
|
||||
|
||||
|
||||
@unittest.skipIf(not DEVELOPER, "need dev-compact-gossip-store")
|
||||
def test_gossip_store_compact(node_factory, bitcoind):
|
||||
l1, l2, l3 = node_factory.line_graph(3, fundchannel=False)
|
||||
|
||||
# Create channel.
|
||||
l2.fund_channel(l3, 10**6)
|
||||
|
||||
# Now compact store.
|
||||
l2.rpc.call('dev-compact-gossip-store')
|
||||
|
||||
# Should still be connected.
|
||||
time.sleep(1)
|
||||
assert len(l2.rpc.listpeers()['peers']) == 2
|
||||
|
||||
Reference in New Issue
Block a user