nim-codex-dht/libp2pdht/dht/providers_messages.nim
Eric Mastro acd03ff831 feat: reorg project to add nimble build system
Project has been updated to use nimble as a build system. All required dependencies have been added.

All nim-eth mirrored files were added to a private folder in the libp2pdht module. A libp2pdht/discv5 module was added to alias the nim-eth modules (which will change over time).

Test have been updated to use status-im/asynctest. This PR uses a branch of asynctest that supports async suite before/after. This seemed like the only the tests would work without throwing gcsafe errors.

All tests working.
2022-02-25 09:10:43 +11:00

16 lines
254 B
Nim

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