forked from duguyifang/TellorMiner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
runMain.sh
executable file
·30 lines (24 loc) · 2.22 KB
/
runMain.sh
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
#!/bin/sh
#PSR=`pwd`/psr.json
#CFG=`pwd`/../../../../localConfig.json
CFG=`pwd`/myconfig.json
#LOG=`pwd`/loggingConfig.json
echo "Starting TellorMiner main"
#go run . -psrPath="${PSR}" -config="${CFG}" -logConfig="${LOG}" "$@"
go run . -config="${CFG}" "$@"
# ./TellorMiner -miner -dataServer -psrPath=./psr.json -config=./config.json -logConfig=./loggingconfig.json
# go run ./main.go -miner -dataServer -psrPath=./psr.json -config=./config.json -logConfig=./loggingconfig.json
#go run ./main.go -deposit -config=./config6.json -psrPath=./psr2.json -logConfig=./loggingConfig.json
#go run ./main.go -transfer -to=0x538d278e05a35c96bcdca1039e92c65b994256a0 -amount=1 -config=./config3.json -psrPath=./psr2.json -logConfig=./loggingConfig.json
# go run ./main.go -approve -to=0x538d278e05a35c96bcdca1039e92c65b994256a0 -amount=1 -config=./myconfig.json -psrPath=./psr.json -logConfig=./loggingConfig.json
# go run ./main.go -vote -disputeId=2 -supportsDispute=false -config=./myconfig.json -psrPath=./psr.json -logConfig=./loggingConfig.json
# go run ./main.go -dispute -requestId=14 -timestamp=1568779500 -minerIndex=2 -config=./myconfig.json -psrPath=./psr.json -logConfig=./loggingConfig.json
# go run ./main.go -requestStakingWithdraw -config=./myconfig.json -psrPath=./psr.json -logConfig=./loggingConfig.json
# To test:
# go run ./main.go -withdraw -config=./myconfig.json -psrPath=./psr.json -logConfig=./loggingConfig.json
# go run ./main.go -deposit -config=./myconfig.json -psrPath=./psr.json -logConfig=./loggingConfig.json
# go run ./main.go -transfer -to=0x538d278e05a35c96bcdca1039e92c65b994256a0 -amount=1 -config=./myconfig.json -psrPath=./psr.json -logConfig=./loggingConfig.json
# go run ./main.go -approve -to=0x538d278e05a35c96bcdca1039e92c65b994256a0 -amount=1 -config=./myconfig.json -psrPath=./psr.json -logConfig=./loggingConfig.json
# go run ./main.go -vote -disputeId=2 -supportsDispute=false -config=./myconfig.json -psrPath=./psr.json -logConfig=./loggingConfig.json
# go run ./main.go -dispute -requestId=14 -timestamp=1568779500 -minerIndex=2 -config=./myconfig.json -psrPath=./psr.json -logConfig=./loggingConfig.json
# go run ./main.go -requestStakingWithdraw -config=./myconfig.json -psrPath=./psr.json -logConfig=./loggingConfig.json