Skip to content

Commit

Permalink
Add a pyln fixture for createwallet
Browse files Browse the repository at this point in the history
  • Loading branch information
jsarenik committed Sep 24, 2020
1 parent 3382daf commit 41e84bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contrib/pyln-testing/pyln/testing/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ def bitcoind(directory, teardown_checks):
raise ValueError("bitcoind is too old. At least version 16000 (v0.16.0)"
" is needed, current version is {}".format(info['version']))

if info['version'] > 200100:
bitcoind.rpc.createwallet("test")

info = bitcoind.rpc.getblockchaininfo()
# Make sure we have some spendable funds
if info['blocks'] < 101:
Expand Down

0 comments on commit 41e84bd

Please sign in to comment.