Added checking for top_block_hash/hash.
This commit is contained in:
parent
074b3869d2
commit
a3b303e885
2 changed files with 43 additions and 9 deletions
|
@ -59,6 +59,7 @@ protected:
|
|||
inline void tick(uint64_t) override {}
|
||||
|
||||
private:
|
||||
bool isOutdated(uint64_t height, const char *hash) const;
|
||||
bool parseJob(const rapidjson::Value ¶ms, int *code);
|
||||
bool parseResponse(int64_t id, const rapidjson::Value &result, const rapidjson::Value &error);
|
||||
int64_t getBlockTemplate();
|
||||
|
@ -67,7 +68,9 @@ private:
|
|||
void send(int method, const char *url, const rapidjson::Document &doc);
|
||||
void setState(SocketState state);
|
||||
|
||||
bool m_monero;
|
||||
String m_blocktemplate;
|
||||
String m_prevHash;
|
||||
String m_tlsFingerprint;
|
||||
String m_tlsVersion;
|
||||
Timer *m_timer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue