elements: Use chainparams when the test relies on addresses

We were checking against hardcoded hrp and prefixes. Now we parametrize via
the chainparams.

Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
Christian Decker
2019-05-09 21:28:21 +02:00
committed by Rusty Russell
parent 84144bcef6
commit 67fc8ffbcf
4 changed files with 195 additions and 3 deletions

View File

@@ -1495,7 +1495,7 @@ def test_permfail(node_factory, bitcoind):
addr = txout['scriptPubKey']['addresses'][0]
assert(addr == o['address'])
addr = l1.bitcoin.rpc.getnewaddress()
addr = l1.bitcoin.getnewaddress()
l1.rpc.withdraw(addr, "all")