Commit 80f172ba authored by Your Name's avatar Your Name

Merge branch 'peer' of https://code.wuban.net.cn/cmpchain/metadeploy into peer

parents 84b12892 ff41b353
......@@ -72,7 +72,7 @@ if [ $# -eq 4 ]; then
while true
do
break
echo "peer----------------"
echo ${input_string_enr##*/}
echo ${input_string_enr##*/} | wc -L
......@@ -215,9 +215,19 @@ do
echo "grpc-port: 38010" >> $configFile
echo "p2p-host-ip: \"$myIpAddr\"" >> $configFile
echo "peer: [\"${seedEnr}\"]" >> $configFile
if [ $i -eq 1 ]; then
private_key=$(python3 -c "print(hex(0xa5b18000b95e9e8e2afe5d49355b48c99aeee9e986ddc144af848847afdccccc)[2:])")
echo $private_key > $configPath/private-key
echo "p2p-priv-key: \"/root/private-key\"" >> $configFile
else
echo "input net index"
read netIndex
echo "your net index is $netIndex"
private_key=$(python3 -c "print(hex(0xa5b18000b95e9e8e2afe5d49355b48c99aeee9e986ddc144af848847afdccccc + $netIndex)[2:])")
echo $private_key > $configPath/private-key
echo "p2p-priv-key: \"/root/private-key\"" >> $configFile
echo "peer: [\"${seedEnr}\"]" >> $configFile
fi
# echo "peer: \"$ipAddr\"" >> $configFile
# peer: ["要连接的peerid"]
# if [ $i -eq 1 ]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment