mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 23:54:22 +01:00
gossipd: specify origin of updates in errors.
@cdecker points out that in test_forward, where we manually create a route, we get an error back which contains an update for an unknown channel. We should still note this, but it's not an error for testing. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
8ee60e2d8e
commit
c546b1bbb6
@@ -301,8 +301,8 @@ class BaseLightningDTests(unittest.TestCase):
|
||||
|
||||
def checkBadGossipOrder(self, node):
|
||||
# We can have a race where we notice a channel deleted and someone
|
||||
# sends an update.
|
||||
if node.daemon.is_in_log('Bad gossip order') and not node.daemon.is_in_log('Deleting channel'):
|
||||
# sends an update, and we can get unknown channel updates in errors.
|
||||
if node.daemon.is_in_log('Bad gossip order from (?!error)') and not node.daemon.is_in_log('Deleting channel'):
|
||||
return 1
|
||||
return 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user