Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
link33
plugin
Commits
4cc37abc
Commit
4cc37abc
authored
Jan 02, 2020
by
linj
Committed by
vipwzw
Jan 08, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update config
parent
cf531070
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
docker-compose.sh
build/docker-compose.sh
+2
-2
system-fork-test.sh
build/system-fork-test.sh
+5
-5
fork-test.sh
plugin/dapp/privacy/cmd/test/fork-test.sh
+1
-1
No files found.
build/docker-compose.sh
View file @
4cc37abc
...
...
@@ -132,10 +132,10 @@ function start() {
${
CLI
}
block last_header
${
CLI
}
net info
${
CLI
}
net peer
_info
${
CLI
}
net peer
local
count
=
1000
while
[
$count
-gt
0
]
;
do
peersCount
=
$(${
CLI
}
net peer
_info
| jq
'.[] | length'
)
peersCount
=
$(${
CLI
}
net peer | jq
'.[] | length'
)
if
[
"
${
peersCount
}
"
-ge
2
]
;
then
break
fi
...
...
build/system-fork-test.sh
View file @
4cc37abc
...
...
@@ -111,12 +111,12 @@ function start() {
${
CLI
}
block last_header
${
CLI
}
net info
${
CLI
}
net peer
_info
peersCount
=
$(${
CLI
}
net peer
_info
| jq
'.[] | length'
)
${
CLI
}
net peer
peersCount
=
$(${
CLI
}
net peer | jq
'.[] | length'
)
echo
"
${
peersCount
}
"
if
[
"
${
peersCount
}
"
-lt
2
]
;
then
sleep
20
peersCount
=
$(${
CLI
}
net peer
_info
| jq
'.[] | length'
)
peersCount
=
$(${
CLI
}
net peer | jq
'.[] | length'
)
echo
"
${
peersCount
}
"
if
[
"
${
peersCount
}
"
-lt
2
]
;
then
echo
"peers error"
...
...
@@ -738,7 +738,7 @@ function peersCount() {
needCount
=
$3
for
((
i
=
0
;
i <
time
;
i++
))
;
do
peersCount
=
$(
$name
net peer
_info
| jq
'.[] | length'
)
peersCount
=
$(
$name
net peer | jq
'.[] | length'
)
printf
'查询节点 %s ,所需节点数 %d ,当前节点数 %s \n'
"
${
name
}
"
"
${
needCount
}
"
"
${
peersCount
}
"
if
[
"
${
peersCount
}
"
=
"
$needCount
"
]
;
then
echo
"============= 符合节点数要求 ============="
...
...
@@ -795,7 +795,7 @@ function checkBlockHashfun() {
fi
fi
peersCount
=
0
peersCount
=
$(${
forkContainers
[0]
}
net peer
_info
| jq
'.[] | length'
)
peersCount
=
$(${
forkContainers
[0]
}
net peer | jq
'.[] | length'
)
printf
'第 %d 次,未查询到网络同步,当前节点数 %d 个,100s后查询\n'
$j
"
${
peersCount
}
"
sleep
100
#检查是否超过了最大检测次数
...
...
plugin/dapp/privacy/cmd/test/fork-test.sh
View file @
4cc37abc
...
...
@@ -100,7 +100,7 @@ function peersCount() {
sleepTime
=
15
for
((
i
=
0
;
i < retryTime
;
i++
))
;
do
peersCount
=
$(
$name
net peer
_info
| jq
'.[] | length'
)
peersCount
=
$(
$name
net peer | jq
'.[] | length'
)
printf
'查询节点 %s ,所需节点数 %d ,当前节点数 %s \n'
"
${
name
}
"
"
${
needCount
}
"
"
${
peersCount
}
"
if
[
"
${
peersCount
}
"
=
"
$needCount
"
]
;
then
echo
"============= 符合节点数要求 ============="
...
...
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