mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 13:25:43 +01:00
Fix wallet creation in contrib/startup_regtest.sh
This commit is contained in:
parent
8182e9cea4
commit
43c46ceb2d
@ -117,7 +117,7 @@ start_ln() {
|
|||||||
# Kick it out of initialblockdownload if necessary
|
# Kick it out of initialblockdownload if necessary
|
||||||
if bitcoin-cli -regtest getblockchaininfo | grep -q 'initialblockdownload.*true'; then
|
if bitcoin-cli -regtest getblockchaininfo | grep -q 'initialblockdownload.*true'; then
|
||||||
# Modern bitcoind needs createwallet
|
# Modern bitcoind needs createwallet
|
||||||
bt-cli createwallet default >/dev/null 2>&1
|
bitcoin-cli -regtest createwallet default >/dev/null 2>&1
|
||||||
bitcoin-cli -regtest generatetoaddress 1 "$(bitcoin-cli -regtest getnewaddress)" > /dev/null
|
bitcoin-cli -regtest generatetoaddress 1 "$(bitcoin-cli -regtest getnewaddress)" > /dev/null
|
||||||
fi
|
fi
|
||||||
alias bt-cli='bitcoin-cli -regtest'
|
alias bt-cli='bitcoin-cli -regtest'
|
||||||
|
Loading…
Reference in New Issue
Block a user