mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-14 00:46:44 +00:00
libwaku: exposing more features
- Allow to start or store discv5 - Expose lightpush request operation - Expose list of connected and mesh peers - Expose store client
This commit is contained in:
parent
8f28992599
commit
9f8f156ceb
@ -73,6 +73,12 @@ proc createPeerExchangeRequest*(
|
||||
): ptr type T =
|
||||
return T.createShared(PEER_EXCHANGE, "", "", 0, "", numPeers)
|
||||
|
||||
proc createDiscV5StartRequest*(T: type DiscoveryRequest): ptr type T =
|
||||
return T.createShared(START_DISCV5, "", "", 0, "")
|
||||
|
||||
proc createDiscV5StopRequest*(T: type DiscoveryRequest): ptr type T =
|
||||
return T.createShared(STOP_DISCV5, "", "", 0, "")
|
||||
|
||||
proc destroyShared(self: ptr DiscoveryRequest) =
|
||||
deallocShared(self[].enrTreeUrl)
|
||||
deallocShared(self[].nameDnsServer)
|
||||
|
Loading…
x
Reference in New Issue
Block a user