Skip to content

Commit

Permalink
Make startup_regtest.sh more robust to bitcoind wallet state
Browse files Browse the repository at this point in the history
  • Loading branch information
instagibbs authored and rustyrussell committed Mar 23, 2023
1 parent 887c6f7 commit cf662e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contrib/startup_regtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ start_ln() {
# Modern bitcoind needs createwallet
echo "Making \"default\" bitcoind wallet."
bitcoin-cli -regtest createwallet default >/dev/null 2>&1
# But it might already exist, load it
bitcoin-cli -regtest loadwallet default
bitcoin-cli -regtest generatetoaddress 1 "$(bitcoin-cli -regtest getnewaddress)" > /dev/null
else
bitcoin-cli -regtest loadwallet default
Expand Down

0 comments on commit cf662e5

Please sign in to comment.