|
@ -4,15 +4,12 @@ set -e |
|
|
echo "## Start bitcoind #############################" |
|
|
echo "## Start bitcoind #############################" |
|
|
|
|
|
|
|
|
bitcoind_options=( |
|
|
bitcoind_options=( |
|
|
-bind=172.28.1.5 |
|
|
|
|
|
-datadir=/home/bitcoin/.bitcoin |
|
|
-datadir=/home/bitcoin/.bitcoin |
|
|
-printtoconsole=1 |
|
|
-printtoconsole=1 |
|
|
-dbcache=$BITCOIND_DB_CACHE |
|
|
-dbcache=$BITCOIND_DB_CACHE |
|
|
-disablewallet=1 |
|
|
-disablewallet=1 |
|
|
-dns=$BITCOIND_DNS |
|
|
-dns=$BITCOIND_DNS |
|
|
-dnsseed=$BITCOIND_DNSSEED |
|
|
-dnsseed=$BITCOIND_DNSSEED |
|
|
-externalip=$(cat /var/lib/tor/hsv2bitcoind/hostname) |
|
|
|
|
|
-listen=1 |
|
|
|
|
|
-maxconnections=$BITCOIND_MAX_CONNECTIONS |
|
|
-maxconnections=$BITCOIND_MAX_CONNECTIONS |
|
|
-maxmempool=$BITCOIND_MAX_MEMPOOL |
|
|
-maxmempool=$BITCOIND_MAX_MEMPOOL |
|
|
-mempoolexpiry=$BITCOIND_MEMPOOL_EXPIRY |
|
|
-mempoolexpiry=$BITCOIND_MEMPOOL_EXPIRY |
|
@ -32,6 +29,12 @@ bitcoind_options=( |
|
|
-zmqpubrawtx=tcp://0.0.0.0:9501 |
|
|
-zmqpubrawtx=tcp://0.0.0.0:9501 |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
if [ "$BITCOIND_LISTEN_MODE" == "on" ]; then |
|
|
|
|
|
bitcoind_options+=(-listen=1) |
|
|
|
|
|
bitcoind_options+=(-bind=172.28.1.5) |
|
|
|
|
|
bitcoind_options+=(-externalip=$(cat /var/lib/tor/hsv2bitcoind/hostname)) |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
if [ "$BITCOIND_RPC_EXTERNAL" == "on" ]; then |
|
|
if [ "$BITCOIND_RPC_EXTERNAL" == "on" ]; then |
|
|
bitcoind_options+=(-zmqpubhashtx=tcp://0.0.0.0:9500) |
|
|
bitcoind_options+=(-zmqpubhashtx=tcp://0.0.0.0:9500) |
|
|
bitcoind_options+=(-zmqpubrawblock=tcp://0.0.0.0:9503) |
|
|
bitcoind_options+=(-zmqpubrawblock=tcp://0.0.0.0:9503) |
|
|