mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-28 14:47:16 +00:00
15 lines
280 B
Go
15 lines
280 B
Go
package remote
|
|
|
|
import (
|
|
"strings"
|
|
|
|
"github.com/ledgerwatch/erigon-lib/gointerfaces/types"
|
|
)
|
|
|
|
func NodeInfoReplyLess(i, j *types.NodeInfoReply) bool {
|
|
if cmp := strings.Compare(i.Name, j.Name); cmp != 0 {
|
|
return cmp == -1
|
|
}
|
|
return strings.Compare(i.Enode, j.Enode) == -1
|
|
}
|