fix: verify block update

This commit is contained in:
Djuri 2025-01-05 22:12:39 +01:00
parent a6a8b5a071
commit b435552c92
Signed by: djuri
GPG key ID: 61B9B2DDE5AA3AC1

View file

@ -181,7 +181,7 @@ void onWebsocketBlockMessage(esp_websocket_event_data_t *event_data)
} }
void processNewBlock(uint32_t newBlockHeight) { void processNewBlock(uint32_t newBlockHeight) {
if (currentBlockHeight == newBlockHeight) if (currentBlockHeight <= newBlockHeight)
{ {
return; return;
} }