Commit e1ddac50 authored by 贾浩@五瓣科技's avatar 贾浩@五瓣科技

update default peer private key

parent a618870e
......@@ -215,9 +215,19 @@ do
echo "grpc-port: 38010" >> $configFile
echo "p2p-host-ip: \"$myIpAddr\"" >> $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