feat: fill msg timestamp while appending RLN proof it is not set (#940)

This commit is contained in:
Prem Chaitanya Prathi 2023-12-06 07:27:00 +05:30 committed by GitHub
parent 5a5ee51f4b
commit 021265eba4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -217,6 +217,10 @@ func (rlnRelay *WakuRLNRelay) AppendRLNProof(msg *pb.WakuMessage, senderEpochTim
} }
msg.RateLimitProof = b msg.RateLimitProof = b
//If msgTimeStamp is not set, then set it to timestamp of proof
if msg.Timestamp == nil {
msg.Timestamp = proto.Int64(senderEpochTime.Unix())
}
return nil return nil
} }