URI: 
       tstart_bitcoind.sh - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
       tstart_bitcoind.sh (570B)
       ---
            1 #!/usr/bin/env bash
            2 export HOME=~
            3 set -eux pipefail
            4 mkdir -p ~/.bitcoin
            5 cat > ~/.bitcoin/bitcoin.conf <<EOF
            6 regtest=1
            7 txindex=1
            8 printtoconsole=1
            9 rpcuser=doggman
           10 rpcpassword=donkey
           11 rpcallowip=127.0.0.1
           12 zmqpubrawblock=tcp://127.0.0.1:28332
           13 zmqpubrawtx=tcp://127.0.0.1:28333
           14 fallbackfee=0.0002
           15 [regtest]
           16 rpcbind=0.0.0.0
           17 rpcport=18554
           18 EOF
           19 rm -rf ~/.bitcoin/regtest
           20 screen -S bitcoind -X quit || true
           21 screen -S bitcoind -m -d bitcoind -regtest
           22 sleep 6
           23 bitcoin-cli createwallet test_wallet
           24 addr=$(bitcoin-cli getnewaddress)
           25 bitcoin-cli generatetoaddress 150 $addr > /dev/null