nim-codex-dht/dht/providers_messages.nim
2022-02-23 22:12:32 +01:00

16 lines
267 B
Nim

import
../eth/p2p/discoveryv5/[node],
libp2p/routing_record
type
AddProviderMessage* = object
cId*: NodeId
prov*: PeerRecord
GetProvidersMessage* = object
cId*: NodeId
ProvidersMessage* = object
total*: uint32
provs*: seq[PeerRecord]