mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-24 16:59:26 +00:00
p2p/discover: fix bug in checkNodesEqual
This commit is contained in:
parent
171430c3f5
commit
56cafb22ca
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue