Fix warnings
This commit is contained in:
@@ -67,7 +67,7 @@ void ConnectionLoader::doAutoConnect() {
|
|||||||
auto connection = makeConnection(config);
|
auto connection = makeConnection(config);
|
||||||
|
|
||||||
// After the lib is initialized, try to do get info
|
// After the lib is initialized, try to do get info
|
||||||
connection->doRPC("info", "", [=](auto reply) {
|
connection->doRPC("info", "", [=](auto) {
|
||||||
// If success, set the connection
|
// If success, set the connection
|
||||||
main->logger->write("Connection is online.");
|
main->logger->write("Connection is online.");
|
||||||
|
|
||||||
|
|||||||
@@ -255,7 +255,7 @@ void Controller::updateUI(bool anyUnconfirmed) {
|
|||||||
|
|
||||||
// Function to process reply of the listunspent and z_listunspent API calls, used below.
|
// Function to process reply of the listunspent and z_listunspent API calls, used below.
|
||||||
void Controller::processUnspent(const json& reply, QMap<QString, qint64>* balancesMap, QList<UnspentOutput>* unspentOutputs) {
|
void Controller::processUnspent(const json& reply, QMap<QString, qint64>* balancesMap, QList<UnspentOutput>* unspentOutputs) {
|
||||||
auto processFn = [=](const json& array) -> bool {
|
auto processFn = [=](const json& array) {
|
||||||
for (auto& it : array) {
|
for (auto& it : array) {
|
||||||
QString qsAddr = QString::fromStdString(it["address"]);
|
QString qsAddr = QString::fromStdString(it["address"]);
|
||||||
int block = it["created_in_block"].get<json::number_unsigned_t>();
|
int block = it["created_in_block"].get<json::number_unsigned_t>();
|
||||||
@@ -361,10 +361,10 @@ void Controller::refreshTransactions() {
|
|||||||
|
|
||||||
txdata.push_back(TransactionItem{
|
txdata.push_back(TransactionItem{
|
||||||
"Sent",
|
"Sent",
|
||||||
it["datetime"].get<json::number_unsigned_t>(),
|
it["datetime"].get<json::number_integer_t>(),
|
||||||
address,
|
address,
|
||||||
QString::fromStdString(it["txid"]),
|
QString::fromStdString(it["txid"]),
|
||||||
model->getLatestBlock() - it["block_height"].get<json::number_unsigned_t>(),
|
model->getLatestBlock() - it["block_height"].get<json::number_integer_t>(),
|
||||||
items
|
items
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
@@ -380,10 +380,10 @@ void Controller::refreshTransactions() {
|
|||||||
|
|
||||||
TransactionItem tx{
|
TransactionItem tx{
|
||||||
"Receive",
|
"Receive",
|
||||||
it["datetime"].get<json::number_unsigned_t>(),
|
it["datetime"].get<json::number_integer_t>(),
|
||||||
address,
|
address,
|
||||||
QString::fromStdString(it["txid"]),
|
QString::fromStdString(it["txid"]),
|
||||||
model->getLatestBlock() - it["block_height"].get<json::number_unsigned_t>() + 1,
|
model->getLatestBlock() - it["block_height"].get<json::number_integer_t>() + 1,
|
||||||
items
|
items
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user