Fix blackball section to conform to format change

This commit is contained in:
moneromooo-monero
2018-09-30 09:12:44 +01:00
parent 3fd37b96a0
commit 59a63e7725
3 changed files with 34 additions and 18 deletions

View File

@@ -738,11 +738,9 @@ QString Wallet::getDaemonLogPath() const
return QString::fromStdString(m_walletImpl->getDefaultDataDir()) + "/bitmonero.log";
}
bool Wallet::blackballOutput(const QString &pubkey)
bool Wallet::blackballOutput(const QString &amount, const QString &offset)
{
QList<QString> list;
list.push_back(pubkey);
return blackballOutputs(list, true);
return m_walletImpl->blackballOutput(amount.toStdString(), offset.toStdString());
}
bool Wallet::blackballOutputs(const QList<QString> &pubkeys, bool add)
@@ -775,9 +773,9 @@ bool Wallet::blackballOutputs(const QString &filename, bool add)
}
}
bool Wallet::unblackballOutput(const QString &pubkey)
bool Wallet::unblackballOutput(const QString &amount, const QString &offset)
{
return m_walletImpl->unblackballOutput(pubkey.toStdString());
return m_walletImpl->unblackballOutput(amount.toStdString(), offset.toStdString());
}
QString Wallet::getRing(const QString &key_image)