From c2e85cd051d8783eb4476569e9c594473f4a0a7a Mon Sep 17 00:00:00 2001 From: ZmnSCPxj Date: Sat, 21 Apr 2018 09:15:11 +0000 Subject: [PATCH] test_lightningd: Check listfunds address matches newaddr paid to. --- tests/test_lightningd.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_lightningd.py b/tests/test_lightningd.py index 9d5104b50..38206b33d 100644 --- a/tests/test_lightningd.py +++ b/tests/test_lightningd.py @@ -3479,6 +3479,7 @@ class LightningDTests(BaseLightningDTests): assert len(l1.rpc.listfunds()['outputs']) == 1 + @unittest.expectedFailure def test_addfunds_from_block(self): """Send funds to the daemon without telling it explicitly """ @@ -3494,6 +3495,10 @@ class LightningDTests(BaseLightningDTests): outputs = l1.db_query('SELECT value FROM outputs WHERE status=0;') assert len(outputs) == 1 and outputs[0]['value'] == 10000000 + # The address we detect must match what was paid to. + output = l1.rpc.listfunds()['outputs'][0] + assert output['address'] == addr + @unittest.skipIf(not DEVELOPER, "needs DEVELOPER=1") def test_channel_persistence(self): # Start two nodes and open a channel (to remember). l2 will