Use latest block instead of info

This commit is contained in:
Aditya Kulkarni
2019-11-13 15:11:11 -08:00
parent c98da96b97
commit bcf2d4e9d6
11 changed files with 67 additions and 41 deletions

View File

@@ -130,6 +130,15 @@ void LiteInterface::fetchInfo(const std::function<void(json)>& cb,
conn->doRPC("info", "", cb, err);
}
void LiteInterface::fetchLatestBlock(const std::function<void(json)>& cb,
const std::function<void(QString)>& err) {
if (conn == nullptr)
return;
conn->doRPC("height", "", cb, err);
}
/**
* Method to get all the private keys for both z and t addresses. It will make 2 batch calls,
* combine the result, and call the callback with a single list containing both the t-addr and z-addr