2
0
mirror of https://github.com/lnbook/lnbook synced 2024-11-01 03:20:53 +00:00
lnbook/code/docker/bitcoind-regtest/bitcoind/bitcoind-start.sh
Andreas M. Antonopoulos 7c5d5699bf Docker and docker-compose
Build network, create keys/addresses, fund wallets.
2020-06-10 22:46:55 -04:00

13 lines
431 B
Bash

#!/bin/bash
bitcoind -datadir=/bitcoind -daemon
sleep 5
export address=`cat /bitcoind/keys/demo_address.txt`
export privkey=`cat /bitcoind/keys/demo_privkey.txt`
echo "================================================"
echo "Importing demo private key"
echo "Bitcoin address: " ${address}
echo "Private key: " ${privkey}
echo "================================================"
bitcoin-cli -datadir=/bitcoind importprivkey $privkey