-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathstart
More file actions
executable file
·61 lines (53 loc) · 1.61 KB
/
start
File metadata and controls
executable file
·61 lines (53 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/bash
#
# @author webworker01
#
scriptpath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
source $scriptpath/main
if (( $thirdpartycoins < 1 )); then
searchlist="coinsfirst[@]"
else
searchlist="coinsthird[@]"
fi
if [[ ! -z ${nn_pubkey} ]]; then
usepubkey="-pubkey=${nn_pubkey}"
else
usepubkey=""
fi
if [[ -z "$1" || "${1^^}" == "KMD" ]]; then
if [[ ! -z ${nn_address} ]]; then
usenotary="-notary=.litecoin/litecoin.conf"
else
usenotary=""
fi
if [[ ! -z ${whitelist_addresses} ]]; then
whitelist="-whitelistaddress=${nn_address}"
for whitelist_address in "${whitelist_addresses[@]}"; do
whitelist="${whitelist} -whitelistaddress=${whitelist_address}"
done
else
whitelist=""
fi
log "start" "Starting KMD"
if (( $thirdpartycoins < 1 )); then
$komodod ${usenotary} ${usepubkey} ${addnodes} -pid=${HOME}/.komodo/komodod.pid ${whitelist} -minrelaytxfee=0.000035 -opretmintxfee=0.004 &
else
$komodod ${usepubkey} ${addnodes} -pid=${HOME}/.komodo/komodod.pid ${whitelist} -minrelaytxfee=0.000035 -opretmintxfee=0.004 &
fi
echo $! > ${scriptpath}/pid/KMD
fi
#search
for coins in "${!searchlist}"; do
searchcoin=($coins)
coin=($coins)
if [[ -z "$1" || "${1^^}" == "${searchcoin[0]}" ]]; then
cd $scriptpath/7776/
log "start" "Starting ${searchcoin[0]}"
eval $(echo coinexec=${searchcoin[2]})
$coinexec ${usepubkey} &
echo $! > ${scriptpath}/pid/${1^^}
fi
done
if (( $thirdpartycoins < 1 )); then
$scriptpath/assetchains $1
fi