Changes for v0.2.1

This commit is contained in:
Aditya Kulkarni
2018-10-24 09:58:19 -07:00
parent 60c047bf71
commit 6117026cc7
5 changed files with 11 additions and 6 deletions

View File

@@ -398,11 +398,11 @@ void RPC::refreshReceivedZTrans(QList<QString> zaddrs, QList<QPair<QString, QStr
// First, find if the current txid is in the filtered list
auto filteredTxid = std::find_if(txidFilter.begin(), txidFilter.end(), [=] (auto item) {
return item.second == txid;
});
});
// If it is in the filtered list and the z-Addr is the fromAddress in the sent
// z-Addr, then this is a "change" recieve, so skip it
if (filteredTxid != txidFilter.end() && filteredTxid->first != zaddr) {
if (filteredTxid == txidFilter.end() || filteredTxid->first != zaddr) {
auto txidInfo = txidDetails->value(txid);
// Lookup txid in the map

View File

@@ -14,7 +14,7 @@ echo "[OK]"
echo -n "Configuring..."
rm -f "bin/linux-zcash-qt-wallet*"
rm -f bin/linux-zcash-qt-wallet*
make distclean > /dev/null
$QT_STATIC/bin/qmake zcash-qt-wallet.pro -spec linux-clang CONFIG+=release > /dev/null
echo "[OK]"

View File

@@ -54,6 +54,11 @@ void SentTxStore::addToSentTx(Tx tx, QString txid) {
if (!Settings::getInstance()->getSaveZtxs())
return;
// Also, only store outgoing Txs where the from address is a z-Addr. Else, regular zcashd
// stores it just fine
if (!tx.fromAddr.startsWith("z"))
return;
QFile data(writeableFile());
QJsonDocument jsonDoc;