zeroconf: Announce the channel with the real scid as well as aliases

With zeroconf we have to duplicate the `local_channel_announcement`
since we locally announce the aliased version, and then on the first
confirmation we also add the funding scid version.
This commit is contained in:
Christian Decker
2022-06-06 15:23:35 +02:00
parent 29157735fb
commit db61b048a9
2 changed files with 20 additions and 1 deletions

View File

@@ -1301,7 +1301,6 @@ def test_zeroconf_open(bitcoind, node_factory):
l2.rpc.pay(inv)
@pytest.mark.xfail(strict=True, reason="Peers do not recognize the final scid yet")
def test_zeroconf_public(bitcoind, node_factory):
"""Test that we transition correctly from zeroconf to public
@@ -1351,6 +1350,7 @@ def test_zeroconf_public(bitcoind, node_factory):
bitcoind.generate_block(5)
# Wait for l3 to learn about the channel, it'll have checked the
# funding outpoint, scripts, etc.
l3.connect(l1)
wait_for(lambda: len(l3.rpc.listchannels()['channels']) == 2)