mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-07 08:04:23 +01:00
test_lightningd: Check listfunds address matches newaddr paid to.
This commit is contained in:
committed by
Christian Decker
parent
140123b4c8
commit
c2e85cd051
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user