mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +00:00
p2p/enode: fmt file
This commit is contained in:
parent
39f523285a
commit
1029acb60f
1 changed files with 1 additions and 1 deletions
|
|
@ -360,7 +360,7 @@ func ParseID(in string) (ID, error) {
|
|||
// and 0 if they are equal.
|
||||
func DistCmp(target, a, b ID) int {
|
||||
for i := 0; i < len(target); i += 8 {
|
||||
tn := binary.BigEndian.Uint64(target[i:i+8])
|
||||
tn := binary.BigEndian.Uint64(target[i : i+8])
|
||||
da := tn ^ binary.BigEndian.Uint64(a[i:i+8])
|
||||
db := tn ^ binary.BigEndian.Uint64(b[i:i+8])
|
||||
if da > db {
|
||||
|
|
|
|||
Loading…
Reference in a new issue