mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-05 15:33:08 +00:00
fix lightpushwithmix example
This commit is contained in:
parent
61c234db05
commit
b20b3e736a
4
Makefile
4
Makefile
@ -233,6 +233,10 @@ liteprotocoltester: | build deps librln
|
||||
echo -e $(BUILD_MSG) "build/$@" && \
|
||||
$(ENV_SCRIPT) nim liteprotocoltester $(NIM_PARAMS) waku.nims
|
||||
|
||||
lightpushwithmix: | build deps librln
|
||||
echo -e $(BUILD_MSG) "build/$@" && \
|
||||
$(ENV_SCRIPT) nim lightpushwithmix $(NIM_PARAMS) waku.nims
|
||||
|
||||
build/%: | build deps librln
|
||||
echo -e $(BUILD_MSG) "build/$*" && \
|
||||
$(ENV_SCRIPT) nim buildone $(NIM_PARAMS) waku.nims $*
|
||||
|
||||
@ -7,6 +7,7 @@ import
|
||||
chronos,
|
||||
confutils,
|
||||
libp2p/crypto/crypto,
|
||||
libp2p/crypto/curve25519,
|
||||
libp2p/multiaddress,
|
||||
eth/keys,
|
||||
eth/p2p/discoveryv5/enr
|
||||
@ -98,7 +99,7 @@ proc setupAndPublish(rng: ref HmacDrbgContext) {.async.} =
|
||||
)
|
||||
node.peerManager.addServicePeer(pxPeerInfo2, WakuPeerExchangeCodec)
|
||||
(
|
||||
await node.mountMix("401dd1eb5582f6dc9488d424aa26ed1092becefcf8543172e6d92c17ed07265a")
|
||||
await node.mountMix(intoCurve25519Key(ncrutils.fromHex("401dd1eb5582f6dc9488d424aa26ed1092becefcf8543172e6d92c17ed07265a")))
|
||||
).isOkOr:
|
||||
error "failed to mount waku mix protocol: ", error = $error
|
||||
return
|
||||
|
||||
@ -132,7 +132,6 @@ task example2, "Build Waku examples":
|
||||
buildBinary "subscriber", "examples/"
|
||||
buildBinary "filter_subscriber", "examples/"
|
||||
buildBinary "lightpush_publisher", "examples/"
|
||||
buildBinary "lightpush_publisher_mix", "examples/"
|
||||
|
||||
task chat2, "Build example Waku chat usage":
|
||||
# NOTE For debugging, set debug level. For chat usage we want minimal log
|
||||
@ -150,6 +149,10 @@ task liteprotocoltester, "Build liteprotocoltester":
|
||||
let name = "liteprotocoltester"
|
||||
buildBinary name, "apps/liteprotocoltester/"
|
||||
|
||||
task lightpushwithmix, "Build lightpushwithmix":
|
||||
let name = "lightpush_publisher_mix"
|
||||
buildBinary name, "examples/"
|
||||
|
||||
task buildone, "Build custom target":
|
||||
let filepath = paramStr(paramCount())
|
||||
discard buildModule filepath
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user