This commit is contained in:
s1fr0 2022-02-05 00:24:45 +01:00
parent f97b95a036
commit dc2b294667
1 changed files with 0 additions and 12 deletions

View File

@ -426,18 +426,6 @@ proc compare*(e1, e2: Epoch): int64 =
epoch2 = fromEpoch(e2) epoch2 = fromEpoch(e2)
return int64(epoch1) - int64(epoch2) return int64(epoch1) - int64(epoch2)
proc getNanosecondTime*(t: float64): int64 =
let tns = t*100000000
return tns
proc getMicrosecondTime*(t: float64): int64 =
let tmus = t*1000000
return tns
proc getMillisecondTime*(t: float64): int64 =
let tms = t*1000
return tms
proc validateMessage*(rlnPeer: WakuRLNRelay, msg: WakuMessage, timeOption: Option[float64] = none(float64)): MessageValidationResult = proc validateMessage*(rlnPeer: WakuRLNRelay, msg: WakuMessage, timeOption: Option[float64] = none(float64)): MessageValidationResult =
## validate the supplied `msg` based on the waku-rln-relay routing protocol i.e., ## validate the supplied `msg` based on the waku-rln-relay routing protocol i.e.,
## the `msg`'s epoch is within MAX_EPOCH_GAP of the current epoch ## the `msg`'s epoch is within MAX_EPOCH_GAP of the current epoch