Add confirmations to websockets RPC
This commit is contained in:
@@ -194,6 +194,10 @@ QString TxTableModel::getMemo(int row) const {
|
||||
return modeldata->at(row).memo;
|
||||
}
|
||||
|
||||
qint64 TxTableModel::getConfirmations(int row) const {
|
||||
return modeldata->at(row).confirmations;
|
||||
}
|
||||
|
||||
QString TxTableModel::getAddr(int row) const {
|
||||
return modeldata->at(row).address.trimmed();
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@ public:
|
||||
QString getAddr(int row) const;
|
||||
qint64 getDate(int row) const;
|
||||
QString getType(int row) const;
|
||||
qint64 getConfirmations(int row) const;
|
||||
QString getAmt (int row) const;
|
||||
|
||||
bool exportToCsv(QString fileName) const;
|
||||
|
||||
@@ -116,7 +116,8 @@ QJsonDocument AppDataServer::processGetTransactions(MainWindow* mainWindow) {
|
||||
{"amount", model->getAmt(i)},
|
||||
{"txid", model->getTxId(i)},
|
||||
{"address", model->getAddr(i)},
|
||||
{"memo", model->getMemo(i)}
|
||||
{"memo", model->getMemo(i)},
|
||||
{"confirmations", model->getConfirmations(i)}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user