pyln-testing: in LightningNode.openchannel, make wait_for_announce more reliable

it now waits for 'alias' in node_announcement, not just block confirms.
more cleanup
This commit is contained in:
Simon Vrouwe
2022-01-16 11:56:15 +02:00
committed by Rusty Russell
parent f84e1a0536
commit 84bead9396
2 changed files with 7 additions and 14 deletions

View File

@@ -452,7 +452,7 @@ def test_bech32_funding(node_factory, chainparams):
wallettxid = res['wallettxid']
wallettx = l1.bitcoin.rpc.getrawtransaction(wallettxid, True)
fundingtx = l1.bitcoin.rpc.decoderawtransaction(res['fundingtx']['tx'])
fundingtx = l1.bitcoin.rpc.decoderawtransaction(res['fundingtx'])
def is_p2wpkh(output):
return output['type'] == 'witness_v0_keyhash' and \