mirror of https://github.com/status-im/go-waku.git
feat: fill msg timestamp while appending RLN proof it is not set (#940)
This commit is contained in:
parent
5a5ee51f4b
commit
021265eba4
|
@ -217,6 +217,10 @@ func (rlnRelay *WakuRLNRelay) AppendRLNProof(msg *pb.WakuMessage, senderEpochTim
|
|||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue