NagyZoltanPeter 5d3fb0cff0
fix(core): clone messages at mutation sites now aliasing under ref
Under ref semantics `var m = someMessage; m.field = ...` mutates the
shared instance the caller still holds. Fix the outbound mutation sites:

- waku_relay/protocol.nim publish: replace the local `var message` +
  timestamp patch with `wakuMessage.ensureTimestampSet()`
- rln/proof.nim attachRLNProof: clone before writing `.proof`
- rest_api relay attachRlnProofAndValidate: clone before writing `.proof`

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-15 04:47:21 +02:00
..