Improve bitaxe handling code

This commit is contained in:
Djuri 2025-01-05 18:08:21 +01:00
parent b8428e1650
commit b4864b1db6
Signed by: djuri
GPG key ID: 61B9B2DDE5AA3AC1
9 changed files with 183 additions and 45 deletions

View file

@ -22,20 +22,20 @@ void onWebsocketBlockEvent(void *handler_args, esp_event_base_t base,
int32_t event_id, void *event_data);
void onWebsocketBlockMessage(esp_websocket_event_data_t *event_data);
void setBlockHeight(uint newBlockHeight);
uint getBlockHeight();
void setBlockHeight(uint32_t newBlockHeight);
uint32_t getBlockHeight();
void setBlockMedianFee(uint blockMedianFee);
uint getBlockMedianFee();
void setBlockMedianFee(uint16_t blockMedianFee);
uint16_t getBlockMedianFee();
bool isBlockNotifyConnected();
void stopBlockNotify();
void restartBlockNotify();
void processNewBlock(uint newBlockHeight);
void processNewBlockFee(uint newBlockFee);
void processNewBlock(uint32_t newBlockHeight);
void processNewBlockFee(uint16_t newBlockFee);
bool getBlockNotifyInit();
uint getLastBlockUpdate();
uint32_t getLastBlockUpdate();
int getBlockFetch();
void setLastBlockUpdate(uint lastUpdate);
void setLastBlockUpdate(uint32_t lastUpdate);