p2p/discover: fix bug in `checkNodesEqual`

This commit is contained in:
bugmaker9371 2024-04-22 03:19:36 +00:00 committed by Felix Lange
parent 171430c3f5
commit 56cafb22ca
1 changed files with 2 additions and 0 deletions

View File

@ -241,6 +241,8 @@ func checkNodesEqual(got, want []*enode.Node) error {
goto NotEqual
}
}
} else {
return fmt.Errorf("length dismatch: got %d nodes, want %d nodes", len(got), len(want))
}
return nil