gecko/node/peer.go

18 lines
407 B
Go

// (c) 2019-2020, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package node
import (
"github.com/ava-labs/gecko/ids"
"github.com/ava-labs/gecko/utils"
)
// Peer contains the specification of an Ava node that can be communicated with.
type Peer struct {
// IP of the peer
IP utils.IPDesc
// ID of the peer that can be verified during a handshake
ID ids.ShortID
}