use different zmq port on testnetworks

This commit is contained in:
openoms 2021-05-10 21:58:27 +01:00
parent 936d550d70
commit 6ed8a7a492
No known key found for this signature in database
GPG key ID: 5BFB77609B081B65

View file

@ -18,8 +18,10 @@ fi
# prefix for parallel services # prefix for parallel services
if [ ${testnetwork} = testnet ];then if [ ${testnetwork} = testnet ];then
prefix="t" prefix="t"
portprefix=1
elif [ ${testnetwork} = signet ];then elif [ ${testnetwork} = signet ];then
prefix="s" prefix="s"
portprefix=3
fi fi
function removeParallelService() { function removeParallelService() {
@ -62,8 +64,10 @@ User=bitcoin
Group=bitcoin Group=bitcoin
Type=forking Type=forking
PIDFile=/mnt/hdd/bitcoin/${prefix}bitcoind.pid PIDFile=/mnt/hdd/bitcoin/${prefix}bitcoind.pid
ExecStart=/usr/local/bin/bitcoind -${testnetwork} -daemon \ ExecStart=/usr/local/bin/bitcoind -${testnetwork} -daemon\
-pid=/mnt/hdd/bitcoin/${prefix}bitcoind.pid -pid=/mnt/hdd/bitcoin/${prefix}bitcoind.pid\
-zmqpubrawblock=tcp://127.0.0.1:${portprefix}8332\
-zmqpubrawtx=tcp://127.0.0.1:${portprefix}8333
KillMode=process KillMode=process
Restart=always Restart=always
TimeoutSec=120 TimeoutSec=120