We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a107ff commit 0ac0b70Copy full SHA for 0ac0b70
cmd/devp2p/internal/v4test/discv4tests.go
@@ -395,7 +395,7 @@ func FindnodePastExpiration(t *utesting.T) {
395
396
// bond performs the endpoint proof with the remote node.
397
func bond(t *utesting.T, te *testenv) {
398
- te.send(te.l1, &v4wire.Ping{
+ pingHash := te.send(te.l1, &v4wire.Ping{
399
Version: 4,
400
From: te.localEndpoint(te.l1),
401
To: te.remoteEndpoint(),
@@ -417,7 +417,9 @@ func bond(t *utesting.T, te *testenv) {
417
})
418
gotPing = true
419
case *v4wire.Pong:
420
- // TODO: maybe verify pong data here
+ if err := te.checkPong(req, pingHash); err != nil {
421
+ t.Fatal(err)
422
+ }
423
gotPong = true
424
}
425
0 commit comments