From 8ad6972b2560f4935e8f4d1c141649c8175cd86d Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 18 Feb 2021 10:07:09 +1030 Subject: [PATCH] contrib: make startup_regtest.sh work for modern bitcoind. They need us to create a wallet. Signed-off-by: Rusty Russell --- contrib/startup_regtest.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/startup_regtest.sh b/contrib/startup_regtest.sh index 08a1f376b..94df2ccb3 100755 --- a/contrib/startup_regtest.sh +++ b/contrib/startup_regtest.sh @@ -116,6 +116,8 @@ start_ln() { # Kick it out of initialblockdownload if necessary if bitcoin-cli -regtest getblockchaininfo | grep -q 'initialblockdownload.*true'; then + # Modern bitcoind needs createwallet + bt-cli createwallet default >/dev/null 2>&1 bitcoin-cli -regtest generatetoaddress 1 "$(bitcoin-cli -regtest getnewaddress)" > /dev/null fi alias bt-cli='bitcoin-cli -regtest'