mirror of
https://git.btclock.dev/btclock/btclock_v3
synced 2025-04-19 05:11:19 +00:00
fix: verify block update
This commit is contained in:
parent
a6a8b5a071
commit
b435552c92
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user