mirror of
https://github.com/logos-messaging/nim-chat-poc.git
synced 2026-07-27 10:43:19 +00:00
Replaces the blind 30s post-RLN-ready sleep in sendBytes with a poll-based wait: capture our cachedProof's merkle root, then wait until it has been present in our own rootTracker for ≥2 poll cycles (cap 180s, warn-and-publish on cap). Adaptive to the underlying chain's block cadence — solves the testnet RLN root-drift race where a 30-42s sleep wasn't enough for mix-node verifiers to poll the post-registration root, so proofs failed with "Spam protection proof verification failed" at mix entry. Non-OnchainLEZ group managers retain the 30s fallback. Bumps vendor/nwaku to pick up the OnchainLEZGroupManager.proofRoot + getPollInterval accessors this gate uses. Also drops the deprecated logos-cpp-sdk override on the nix-fetched LOGOSCORE: overriding the SDK breaks liblogos 7df6195's source (stale requestObject/onEvent shape). Plugins via logos-module-builder ship the newer SDK and are ABI-compatible with the native build.