mirror of
https://github.com/logos-messaging/nim-chat-poc.git
synced 2026-07-05 16:09:26 +00:00
cleanup(08-slop): compress session-narrative comments + bump nwaku
This commit is contained in:
parent
fce56b367c
commit
aeea109fd3
@ -435,13 +435,8 @@ done
|
|||||||
# the kad-peer count is logged only for diagnostics.
|
# the kad-peer count is logged only for diagnostics.
|
||||||
echo " Waiting for kademlia propagation + RLN convergence..."
|
echo " Waiting for kademlia propagation + RLN convergence..."
|
||||||
KADEMLIA_T0=$SECONDS
|
KADEMLIA_T0=$SECONDS
|
||||||
# Mix circuits drop sphinx packets at any hop whose RLN credentials aren't
|
# Block chat startup until every mix hop has RLN credentials confirmed
|
||||||
# yet confirmed on-chain (Plugin not ready). Wait for ALL mix nodes to be
|
# on-chain — unregistered hops drop sphinx packets (Plugin not ready).
|
||||||
# fully registered before starting chat:
|
|
||||||
# - node0 (gifter) self-registers — logs "Gifter self-registered as mix relay"
|
|
||||||
# - node1..N-1 each register via gifter — node0 logs "RLN gifter
|
|
||||||
# registration succeeded" once per client.
|
|
||||||
# Required: 1 self-reg + (NUM_NODES - 1) client regs.
|
|
||||||
REQUIRED_CLIENT_REGS=$((NUM_NODES - 1))
|
REQUIRED_CLIENT_REGS=$((NUM_NODES - 1))
|
||||||
while true; do
|
while true; do
|
||||||
ELAPSED=$((SECONDS - KADEMLIA_T0))
|
ELAPSED=$((SECONDS - KADEMLIA_T0))
|
||||||
|
|||||||
@ -431,13 +431,9 @@ proc start*(client: WakuClient) {.async.} =
|
|||||||
leafIndex = success.leafIndex,
|
leafIndex = success.leafIndex,
|
||||||
configAccount = configAccountId
|
configAccount = configAccountId
|
||||||
|
|
||||||
# Background watcher: gifter returns a PRE-SUBMIT leaf_index snapshot,
|
# Correct the optimistic leaf via the status codec if a concurrent
|
||||||
# which can be wrong if a concurrent register tx claimed the slot
|
# registration tx beat ours to the slot. Pre-publish self-verify drops
|
||||||
# first. Poll the gifter over a SEPARATE short-lived libp2p stream
|
# bad proofs in the meantime.
|
||||||
# (membership status codec) until the on-chain membership PDA
|
|
||||||
# materialises for our id; if the authoritative leaf differs,
|
|
||||||
# rewrite lezGm.membershipIndex so subsequent proofs are valid. The
|
|
||||||
# pre-publish self-verify rejects bad proofs in the meantime.
|
|
||||||
let watcherLezGm = lezGm
|
let watcherLezGm = lezGm
|
||||||
let watcherConfigAccount = configAccountId
|
let watcherConfigAccount = configAccountId
|
||||||
asyncSpawn gifterClient.watchMembershipConfirmation(
|
asyncSpawn gifterClient.watchMembershipConfirmation(
|
||||||
|
|||||||
2
vendor/nwaku
vendored
2
vendor/nwaku
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 618ce267c0b1587e98808de7840bcad9fdbd5655
|
Subproject commit 5e3bbeb499909218ff171d83f2b1c35c26e4ac3c
|
||||||
Loading…
x
Reference in New Issue
Block a user