tests: move /electrum/tests to /tests
This commit is contained in:
25
tests/regtest/run_bitcoind.sh
Executable file
25
tests/regtest/run_bitcoind.sh
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env bash
|
||||
export HOME=~
|
||||
set -eux pipefail
|
||||
mkdir -p ~/.bitcoin
|
||||
cat > ~/.bitcoin/bitcoin.conf <<EOF
|
||||
regtest=1
|
||||
txindex=1
|
||||
printtoconsole=1
|
||||
rpcuser=doggman
|
||||
rpcpassword=donkey
|
||||
rpcallowip=127.0.0.1
|
||||
zmqpubrawblock=tcp://127.0.0.1:28332
|
||||
zmqpubrawtx=tcp://127.0.0.1:28333
|
||||
fallbackfee=0.0002
|
||||
[regtest]
|
||||
rpcbind=0.0.0.0
|
||||
rpcport=18554
|
||||
EOF
|
||||
rm -rf ~/.bitcoin/regtest
|
||||
bitcoind -regtest &
|
||||
sleep 6
|
||||
bitcoin-cli createwallet test_wallet
|
||||
addr=$(bitcoin-cli getnewaddress)
|
||||
bitcoin-cli generatetoaddress 150 $addr
|
||||
tail -f ~/.bitcoin/regtest/debug.log
|
||||
Reference in New Issue
Block a user