From 0ad4c4997cf4fd6ddd1568c082fdb5f5a1c760fa Mon Sep 17 00:00:00 2001 From: Green Sky Date: Sat, 12 Apr 2025 23:00:32 +0200 Subject: [PATCH] limit received messages to 1min into the future --- solanaceae/ngc_hs2/ngc_hs2_rizzler.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/solanaceae/ngc_hs2/ngc_hs2_rizzler.cpp b/solanaceae/ngc_hs2/ngc_hs2_rizzler.cpp index e911477..52df963 100644 --- a/solanaceae/ngc_hs2/ngc_hs2_rizzler.cpp +++ b/solanaceae/ngc_hs2/ngc_hs2_rizzler.cpp @@ -204,6 +204,12 @@ void NGCHS2Rizzler::handleMsgPack(ContactHandle4 sync_by_c, const std::vector now_ts) { + // message is too far into the future + continue; + } + const auto& j_ppk = j_entry.at("ppk"); uint32_t mid = j_entry.at("mid");