Browse Source

test_lightningd: Check listfunds address matches newaddr paid to.

ppa-0.6.1
ZmnSCPxj 7 years ago
committed by Christian Decker
parent
commit
c2e85cd051
  1. 5
      tests/test_lightningd.py

5
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

Loading…
Cancel
Save