tests/regtest: don't fail when restarting bitcoind
This commit is contained in:
parent
b73c093d3d
commit
0853dedc43
@ -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
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user