mirror of
https://github.com/codex-storage/nim-codex-dht.git
synced 2025-02-22 08:38:13 +00:00
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.
16 lines
254 B
Nim
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]
|