mirror of
https://github.com/logos-messaging/nim-chat-poc.git
synced 2026-07-06 16:39:34 +00:00
src/chat/delivery/waku_client.nim: - After the gifter-client returns its optimistic leaf_index, spawn a background watcher that polls the gifter's new membership-status RPC (short-lived libp2p streams on /logos/rln/membership/status/ 1.0.0) until the on-chain membership PDA materialises for our id. If the authoritative leaf differs from the optimistic snapshot, the watcher rewrites lezGm.membershipIndex. The OnchainLEZGroupManager's poll loop picks up the corrected proof on its next iteration; spam_protection's self-verify rejects bad proofs until then. vendor/nwaku bump pulls in: - New /logos/rln/membership/status/1.0.0 codec + handlers on the gifter server. - MembershipStatusRequest/Response RPC messages. - WakuRlnGifterClient.queryMembershipStatus. - Mix-node gifter-client watcher with the same pattern.