pytest: fix up test_gossip_ratelimit.

We were in fact feeding l1 its own gossip, which it doesn't ratelimit (this was
a bit fuzzy before, but definitely is the case now!).

So make this node actually l3, so we test what we expected to test.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2023-04-13 12:25:22 +09:30 committed by ShahanaFarooqui
parent 58c624d067
commit ba7901bebd
1 changed files with 3 additions and 5 deletions

View File

@ -1869,11 +1869,9 @@ def test_gossip_ratelimit(node_factory, bitcoind):
We get BROKEN logs because gossipd talks about non-existent channels to
lightningd ("**BROKEN** lightningd: Local update for bad scid 103x1x1").
"""
l3, = node_factory.get_nodes(
1,
opts=[{'dev-gossip-time': 1568096251,
'allow_broken_log': True}]
)
l3 = node_factory.get_node(node_id=3,
allow_broken_log=True,
options={'dev-gossip-time': 1568096251})
# Bump to block 102, so the following tx ends up in 103x1:
bitcoind.generate_block(1)