adjustments for test networks
1) configuration files and genesis json updated 2) parity statup scripts modified as so runner script is not needed any more
This commit is contained in:
parent
073cbd94fa
commit
c466cf52a2
|
@ -36,6 +36,6 @@
|
|||
"0x0000000000000000000000000000000000000004": { "balance": "1", "builtin": { "name": "identity", "pricing": { "linear": { "base": 15, "word": 3 } } } },
|
||||
"0xf3ee321df87781864f46f6464e764c2827fca73b": { "balance": "10000000000000000000000" },
|
||||
"0x37a30534da3d53aa1867adde26e114a3161b2b12": { "balance": "100000000000000000000000" },
|
||||
"0x554E8f65d58621cBAa1806C96898Ea1b1D9C4EC1": { "balance": "100000000000000000000000" }
|
||||
"0xd6d713a71eb3955c680d5967e9bb22298edefcc3": { "balance": "100000000000000000000000" }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[parity]
|
||||
chain = "/home/koal/parity/PoA_foreign.json"
|
||||
base_path = "/home/koal/parity/PoA_foreign"
|
||||
keys_path = "/home/koal/parity/keys"
|
||||
chain = "PoA_foreign.json"
|
||||
base_path = "/home/koal/poa/PoA_foreign"
|
||||
keys_path = "./keys"
|
||||
|
||||
[network]
|
||||
port = 30343
|
||||
|
@ -25,7 +25,7 @@ port = 48546
|
|||
|
||||
[account]
|
||||
unlock = ["0xf3ee321df87781864f46f6464e764c2827fca73b"]
|
||||
password = ["/home/koal/parity/keys/passwd/foreign_f3ee321df87781864f46f6464e764c2827fca73b.pwd"]
|
||||
password = ["./keys/passwd/foreign_f3ee321df87781864f46f6464e764c2827fca73b.pwd"]
|
||||
|
||||
[mining]
|
||||
engine_signer = "0xf3ee321df87781864f46f6464e764c2827fca73b"
|
||||
|
|
|
@ -36,6 +36,6 @@
|
|||
"0x0000000000000000000000000000000000000004": { "balance": "1", "builtin": { "name": "identity", "pricing": { "linear": { "base": 15, "word": 3 } } } },
|
||||
"0x842eb2142c5aa1260954f07aae39ddee1640c3a7": { "balance": "10000000000000000000000" },
|
||||
"0x37a30534da3d53aa1867adde26e114a3161b2b12": { "balance": "100000000000000000000000" },
|
||||
"0x554E8f65d58621cBAa1806C96898Ea1b1D9C4EC1": { "balance": "100000000000000000000000" }
|
||||
"0xd6d713a71eb3955c680d5967e9bb22298edefcc3": { "balance": "100000000000000000000000" }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[parity]
|
||||
chain = "/home/koal/parity/PoA_home.json"
|
||||
base_path = "/home/koal/parity/PoA_home"
|
||||
keys_path = "/home/koal/parity/keys"
|
||||
chain = "PoA_home.json"
|
||||
base_path = "/home/koal/poa/PoA_home"
|
||||
keys_path = "./keys"
|
||||
|
||||
[network]
|
||||
port = 30333
|
||||
|
@ -25,7 +25,7 @@ port = 38546
|
|||
|
||||
[account]
|
||||
unlock = ["0x842eb2142c5aa1260954f07aae39ddee1640c3a7"]
|
||||
password = ["/home/koal/parity/keys/passwd/home_842eb2142c5aa1260954f07aae39ddee1640c3a7.pwd"]
|
||||
password = ["./keys/passwd/home_842eb2142c5aa1260954f07aae39ddee1640c3a7.pwd"]
|
||||
|
||||
[mining]
|
||||
engine_signer = "0x842eb2142c5aa1260954f07aae39ddee1640c3a7"
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
PARITY_EXEC=/opt/parity/parity
|
||||
PARITY_CONFIG=/home/koal/parity/PoA_foreign.toml
|
||||
#DEBUG_RPC='-l rpc=trace'
|
||||
#EXTRA_CONFIG='--jsonrpc-hosts="all" --jsonrpc-cors null'
|
||||
|
||||
exec ${PARITY_EXEC} --config ${PARITY_CONFIG} ${DEBUG_RPC} ${EXTRA_CONFIG}
|
|
@ -1,8 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
PARITY_EXEC=/opt/parity/parity
|
||||
PARITY_CONFIG=/home/koal/parity/PoA_home.toml
|
||||
#DEBUG_RPC='-l rpc=trace'
|
||||
#EXTRA_CONFIG='--jsonrpc-hosts="all" --jsonrpc-cors null'
|
||||
|
||||
exec ${PARITY_EXEC} --config ${PARITY_CONFIG} ${DEBUG_RPC} ${EXTRA_CONFIG}
|
|
@ -1,9 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
PARITY_BASE="/home/koal/parity"
|
||||
RUNNER="parity_PoA_foreign.sh"
|
||||
PARITY_BASE="/home/koal/poa"
|
||||
TASK="PoA_foreign"
|
||||
RUNNER="parity_${TASK}.sh"
|
||||
PARITY_CONFIG="${TASK}.toml"
|
||||
TASK_WORK_DIR="${PARITY_BASE}/${TASK}"
|
||||
|
||||
cd ${PARITY_BASE}/${TASK}
|
||||
#DEBUG_RPC='-l rpc=trace'
|
||||
#EXTRA_CONFIG='--jsonrpc-hosts="all" --jsonrpc-cors null'
|
||||
|
||||
exec screen -d -m -U -t "${TASK}" -S "${TASK}.screen" -h 5000 -L -s ${PARITY_BASE}/${RUNNER}
|
||||
configdir=`dirname $0`
|
||||
cd ${configdir}
|
||||
|
||||
source start_common.sh
|
||||
|
|
|
@ -1,9 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
PARITY_BASE="/home/koal/parity"
|
||||
RUNNER="parity_PoA_home.sh"
|
||||
PARITY_BASE="/home/koal/poa"
|
||||
TASK="PoA_home"
|
||||
RUNNER="parity_${TASK}.sh"
|
||||
PARITY_CONFIG="${TASK}.toml"
|
||||
TASK_WORK_DIR="${PARITY_BASE}/${TASK}"
|
||||
|
||||
cd ${PARITY_BASE}/${TASK}
|
||||
#DEBUG_RPC='-l rpc=trace'
|
||||
#EXTRA_CONFIG='--jsonrpc-hosts="all" --jsonrpc-cors null'
|
||||
|
||||
exec screen -d -m -U -t "${TASK}" -S "${TASK}.screen" -h 5000 -L -s ${PARITY_BASE}/${RUNNER}
|
||||
configdir=`dirname $0`
|
||||
cd ${configdir}
|
||||
|
||||
source start_common.sh
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
PARITY_EXEC=`which parity`
|
||||
if [ "${PARITY_EXEC}" == "" ]; then
|
||||
PARITY_EXEC=/opt/parity/parity
|
||||
fi
|
||||
|
||||
if [ `ps ax | grep ${PARITY_EXEC} | grep ${PARITY_CONFIG} | wc -l` == "1" ]; then
|
||||
echo "Already exists"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
if [ `screen -ls ${TASK}.screen | grep ${TASK}.screen | wc -l` == "1" ]; then
|
||||
configdir=`dirname $0`
|
||||
cd ${configdir}
|
||||
exec ${PARITY_EXEC} --config ${PARITY_CONFIG} ${DEBUG_RPC} ${EXTRA_CONFIG}
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -d ${TASK_WORK_DIR} ]; then
|
||||
mkdir -p ${TASK_WORK_DIR}
|
||||
fi
|
||||
|
||||
curdir=`pwd`
|
||||
scr=$0
|
||||
|
||||
cd ${TASK_WORK_DIR}
|
||||
|
||||
exec screen -d -m -U -t "${TASK}" -S "${TASK}.screen" -h 5000 -L -s ${curdir}/${scr}
|
Loading…
Reference in New Issue