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
57f80841
Commit
57f80841
authored
Nov 13, 2023
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update peer id
parent
1b885bcb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
host.sh
host/host.sh
+1
-3
No files found.
host/host.sh
View file @
57f80841
...
@@ -4,8 +4,6 @@ set -e
...
@@ -4,8 +4,6 @@ set -e
N
=
${
1
:-
2
}
N
=
${
1
:-
2
}
host_ip
=
$(
ifconfig |
grep
-Eo
'inet (addr:)?([0-9]*\.){3}[0-9]*'
|
grep
-Eo
'([0-9]*\.){3}[0-9]*'
|grep
'192.168.1'
)
host_ip
=
${
2
:-
$host_ip
}
host_ip
=
${
2
:-
$host_ip
}
cd
../mainchain/
cd
../mainchain/
...
@@ -61,7 +59,7 @@ do
...
@@ -61,7 +59,7 @@ do
if
[
$i
-eq
1
]
;
then
if
[
$i
-eq
1
]
;
then
echo
"p2p-priv-key:
\"
/etc/MetaNet/default-priv-key
\"
"
>>
$configFile
echo
"p2p-priv-key:
\"
/etc/MetaNet/default-priv-key
\"
"
>>
$configFile
else
else
echo
"bootstrap-node: [
\"
enr:-JG4Q
P1aYRCaCknvIa3hSqE1zAUrm203DNFcvS8E1lQkqHq-PR0sQhIkzK7L4ZLLLPOijD9BTeCLWi8-0LVORt63dimGAYutv-WkgmlkgnY0gmlwhMCoAdy
Jc2VjcDI1NmsxoQJ81pyuyqa2QoPztOPsCqpkcW1gJwUxOcSJuWr9VUNavIN0Y3CCdn2DdWRwgnZ-
\"
]"
>>
$configFile
echo
"bootstrap-node: [
\"
enr:-JG4Q
EOwrARSiElnvYO0oWjgOrt9-faERbU0O_pYM2Cuh_s9K__lZ2Lco569gWZFfOrqI7pEwKBxG3RYqZRvhJCHwMGGAYvHpaQegmlkgnY0gmlwhBJmI8i
Jc2VjcDI1NmsxoQJ81pyuyqa2QoPztOPsCqpkcW1gJwUxOcSJuWr9VUNavIN0Y3CCdn2DdWRwgnZ-
\"
]"
>>
$configFile
# decoded enr: /ip4/192.168.1.220/tcp/30334/p2p/16Uiu2HAm3pzLayNahJtkYHaxWFMibZ7RuyG8BRsdj1YQRvwWYKM5
# decoded enr: /ip4/192.168.1.220/tcp/30334/p2p/16Uiu2HAm3pzLayNahJtkYHaxWFMibZ7RuyG8BRsdj1YQRvwWYKM5
fi
fi
done
done
...
...
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