Skip to content

Commit

Permalink
test_lightningd: Check listfunds address matches newaddr paid to.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZmnSCPxj authored and cdecker committed Apr 22, 2018
1 parent 140123b commit c2e85cd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_lightningd.py
Original file line number Diff line number Diff line change
Expand Up @@ -3479,6 +3479,7 @@ def test_funding_while_offline(self):

assert len(l1.rpc.listfunds()['outputs']) == 1

@unittest.expectedFailure
def test_addfunds_from_block(self):
"""Send funds to the daemon without telling it explicitly
"""
Expand All @@ -3494,6 +3495,10 @@ def test_addfunds_from_block(self):
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
Expand Down

0 comments on commit c2e85cd

Please sign in to comment.