gossipd: feed lightningd the channel_updates as soon as we make them.

Even if we're deferring putting them in the store and broadcasting them,
we tell lightningd so it will use it in any error messages.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2022-01-25 06:29:52 +10:30
parent 51d23ffcd3
commit 430a380e35
5 changed files with 31 additions and 3 deletions

View File

@@ -1091,7 +1091,9 @@ def test_funding_reorg_private(node_factory, bitcoind):
# Rescan to detect reorg at restart and may_reconnect so channeld
# will restart. Reorg can cause bad gossip msg.
opts = {'funding-confirms': 2, 'rescan': 10, 'may_reconnect': True,
'allow_bad_gossip': True}
'allow_bad_gossip': True,
# gossipd send lightning update for original channel.
'allow_broken_log': True}
l1, l2 = node_factory.line_graph(2, fundchannel=False, opts=opts)
l1.fundwallet(10000000)
sync_blockheight(bitcoind, [l1]) # height 102