tests/regtest: don't fail when restarting bitcoind

This commit is contained in:
Erik Arvstedt 2021-10-05 21:44:56 +02:00
parent b73c093d3d
commit 0853dedc43
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

@ -229,7 +229,8 @@ let
services.bitcoind.regtest = true; services.bitcoind.regtest = true;
systemd.services.bitcoind.postStart = mkAfter '' systemd.services.bitcoind.postStart = mkAfter ''
cli=${config.services.bitcoind.cli}/bin/bitcoin-cli cli=${config.services.bitcoind.cli}/bin/bitcoin-cli
$cli createwallet "test" # Don't fail when wallet already exists
$cli createwallet "test" || true
address=$($cli getnewaddress) address=$($cli getnewaddress)
$cli generatetoaddress 10 $address $cli generatetoaddress 10 $address
''; '';