fix: verify block update
This commit is contained in:
parent
a6a8b5a071
commit
b435552c92
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue