mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-07-19 11:09:26 +00:00
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:
parent
71f59c6464
commit
bd1868c617
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user