fix(rln): deref message for diagnostic hash log field

`msg.hash` in the validateMessage log line resolved to the generic
std/hashes object hash under value semantics; a WakuMessage ref no
longer matches it. Deref (`msg[].hash`) preserves the exact prior
diagnostic value.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
NagyZoltanPeter 2026-07-15 04:50:35 +02:00
parent 71f59c6464
commit bd1868c617
No known key found for this signature in database
GPG Key ID: 3E1F97CF4A7B6F42

View File

@ -72,7 +72,7 @@ proc validateMessage*(
let timeDiff = uint64(abs(currentTime - messageTime))
info "time info",
currentTime = currentTime, messageTime = messageTime, msgHash = msg.hash
currentTime = currentTime, messageTime = messageTime, msgHash = msg[].hash
if timeDiff > rlnPeer.rlnMaxTimestampGap:
warn "invalid message: timestamp difference exceeds threshold",