fix libp2p to custom branch and exclude service node from mix node pool

This commit is contained in:
Prem Chaitanya Prathi 2025-03-17 17:47:17 +05:30
parent 146a8b1aec
commit 282a8c14d0
3 changed files with 6 additions and 5 deletions

View File

@ -98,7 +98,7 @@ proc setupAndPublish(rng: ref HmacDrbgContext) {.async.} =
node.peerManager.start()
notice "publisher service started"
var numMsgs = 2
var numMsgs = 1
var i = 0
while i < numMsgs:
i = i + 1
@ -122,7 +122,8 @@ proc setupAndPublish(rng: ref HmacDrbgContext) {.async.} =
else:
error "failed to publish message", error = res.error
await sleepAsync(500)
await sleepAsync(5000)
break
when isMainModule:

2
vendor/nim-libp2p vendored

@ -1 +1 @@
Subproject commit 78a434405435b69a24e8b263d48d622d57c4db5b
Subproject commit cde63c49f0c8f643f382a3ec2889ca865f7f4d23

View File

@ -222,13 +222,13 @@ proc mountSharding*(
proc getBootStrapMixNodes*(node: WakuNode): Table[PeerId, MixPubInfo] =
var mixNodes = initTable[PeerId, MixPubInfo]()
# MixNode Multiaddrs and PublicKeys:
let bootNodesMultiaddrs = ["/ip4/127.0.0.1/tcp/60001/p2p/16Uiu2HAmPiEs2ozjjJF2iN2Pe2FYeMC9w4caRHKYdLdAfjgbWM6o",
let bootNodesMultiaddrs = [#"/ip4/127.0.0.1/tcp/60001/p2p/16Uiu2HAmPiEs2ozjjJF2iN2Pe2FYeMC9w4caRHKYdLdAfjgbWM6o",
"/ip4/127.0.0.1/tcp/60002/p2p/16Uiu2HAmLtKaFaSWDohToWhWUZFLtqzYZGPFuXwKrojFVF6az5UF",
"/ip4/127.0.0.1/tcp/60003/p2p/16Uiu2HAmTEDHwAziWUSz6ZE23h5vxG2o4Nn7GazhMor4bVuMXTrA",
"/ip4/127.0.0.1/tcp/60004/p2p/16Uiu2HAmPwRKZajXtfb1Qsv45VVfRZgK3ENdfmnqzSrVm3BczF6f",
"/ip4/127.0.0.1/tcp/60005/p2p/16Uiu2HAmRhxmCHBYdXt1RibXrjAUNJbduAhzaTHwFCZT4qWnqZAu",
]
let bootNodesMixPubKeys = ["9d09ce624f76e8f606265edb9cca2b7de9b41772a6d784bddaf92ffa8fba7d2c",
let bootNodesMixPubKeys = [#"9d09ce624f76e8f606265edb9cca2b7de9b41772a6d784bddaf92ffa8fba7d2c",
"9231e86da6432502900a84f867004ce78632ab52cd8e30b1ec322cd795710c2a",
"275cd6889e1f29ca48e5b9edb800d1a94f49f13d393a0ecf1a07af753506de6c",
"e0ed594a8d506681be075e8e23723478388fb182477f7a469309a25e7076fc18",