mirror of
https://git.btclock.dev/btclock/btclock_v3
synced 2025-04-19 13:21:18 +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) {
|
void processNewBlock(uint32_t newBlockHeight) {
|
||||||
if (currentBlockHeight == newBlockHeight)
|
if (currentBlockHeight <= newBlockHeight)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user