From b435552c92685ad4525c7538df36138bffb199fb Mon Sep 17 00:00:00 2001 From: Djuri Baars Date: Sun, 5 Jan 2025 22:12:39 +0100 Subject: [PATCH] fix: verify block update --- src/lib/block_notify.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/block_notify.cpp b/src/lib/block_notify.cpp index 37b5b2f..0dab659 100644 --- a/src/lib/block_notify.cpp +++ b/src/lib/block_notify.cpp @@ -181,7 +181,7 @@ void onWebsocketBlockMessage(esp_websocket_event_data_t *event_data) } void processNewBlock(uint32_t newBlockHeight) { - if (currentBlockHeight == newBlockHeight) + if (currentBlockHeight <= newBlockHeight) { return; }