mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-07-23 05:00:21 +00:00
420 INVALID_MESSAGE is returned for any validateMessage failure, not just RLN ones (e.g. oversized messages), so a bare status-code check triggers an unbounded on-chain fetchMerkleProofElements RPC per rejected message. Match the legacy-lightpush path: require the error description to contain RlnValidatorErrorMsg before refreshing; 504 OUT_OF_RLN_PROOF remains unconditional as it is unambiguously RLN-specific. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>