Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
metadeploy
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nebula
metadeploy
Commits
e1ddac50
Commit
e1ddac50
authored
Dec 09, 2023
by
贾浩@五瓣科技
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update default peer private key
parent
a618870e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
host.sh
host/host.sh
+13
-3
No files found.
host/host.sh
View file @
e1ddac50
...
@@ -215,9 +215,19 @@ do
...
@@ -215,9 +215,19 @@ do
echo
"grpc-port: 38010"
>>
$configFile
echo
"grpc-port: 38010"
>>
$configFile
echo
"p2p-host-ip:
\"
$myIpAddr
\"
"
>>
$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
echo
"peer: [
\"
${
seedEnr
}
\"
]"
>>
$configFile
fi
# echo "peer: \"$ipAddr\"" >> $configFile
# echo "peer: \"$ipAddr\"" >> $configFile
# peer: ["要连接的peerid"]
# peer: ["要连接的peerid"]
# if [ $i -eq 1 ]; then
# if [ $i -eq 1 ]; then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment