Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
张蕾
Geth-Modification
Commits
c6a2f77c
Unverified
Commit
c6a2f77c
authored
Jan 03, 2023
by
strykerin
Committed by
GitHub
Jan 03, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/devp2p/internal/v4test: add pong validation in bond (#26400)
parent
dad92500
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
discv4tests.go
cmd/devp2p/internal/v4test/discv4tests.go
+4
-2
No files found.
cmd/devp2p/internal/v4test/discv4tests.go
View file @
c6a2f77c
...
...
@@ -395,7 +395,7 @@ func FindnodePastExpiration(t *utesting.T) {
// bond performs the endpoint proof with the remote node.
func
bond
(
t
*
utesting
.
T
,
te
*
testenv
)
{
te
.
send
(
te
.
l1
,
&
v4wire
.
Ping
{
pingHash
:=
te
.
send
(
te
.
l1
,
&
v4wire
.
Ping
{
Version
:
4
,
From
:
te
.
localEndpoint
(
te
.
l1
),
To
:
te
.
remoteEndpoint
(),
...
...
@@ -417,7 +417,9 @@ func bond(t *utesting.T, te *testenv) {
})
gotPing
=
true
case
*
v4wire
.
Pong
:
// TODO: maybe verify pong data here
if
err
:=
te
.
checkPong
(
req
,
pingHash
);
err
!=
nil
{
t
.
Fatal
(
err
)
}
gotPong
=
true
}
}
...
...
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