Skip to content

Commit

Permalink
pytest: add test for raising listtransactions after funding
Browse files Browse the repository at this point in the history
  • Loading branch information
m-schmoock committed Nov 12, 2019
1 parent de91eda commit 9392086
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -663,3 +663,15 @@ def test_hsmtool_secret_decryption(node_factory):
l1.daemon.opts.pop("encrypted-hsm")
l1.daemon.start(stdin=slave_fd, wait_for_initialized=True)
assert node_id == l1.rpc.getinfo()["id"]


def test_fundchannel_listtransaction(node_factory, bitcoind):
l1, l2 = node_factory.get_nodes(2)
l1.fundwallet(10**6)

l1.connect(l2)
l1.rpc.fundchannel(l2.info['id'], 10**5)

# next call warns about SQL Accessing a null column
# and it can crash the daemon for accessing random memory or null
l1.rpc.listtransactions()['transactions']

0 comments on commit 9392086

Please sign in to comment.