From 66f2f206e2f03a04411f8a26604e6ba84ef6bfe7 Mon Sep 17 00:00:00 2001 From: dtfiedler Date: Fri, 20 Dec 2024 17:04:47 -0600 Subject: [PATCH] chore(validation): `LastKnownMessageTimestamp` is giving issues for existing observers. For now we will allow anything greater than 0 until release 23, where they will use the latest SDK. --- src/main.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.lua b/src/main.lua index 1f523f3c..d1923c1b 100644 --- a/src/main.lua +++ b/src/main.lua @@ -387,7 +387,8 @@ end -- Sanitize inputs before every interaction local function assertAndSanitizeInputs(msg) assert( - msg.Timestamp and tonumber(msg.Timestamp) >= LastKnownMessageTimestamp, + -- TODO: replace this with LastKnownMessageTimestamp after node release 23.0.0 + msg.Timestamp and tonumber(msg.Timestamp) >= 0, "Timestamp must be greater than or equal to the last known message timestamp of " .. LastKnownMessageTimestamp .. " but was "