Add segregation key reuse mitigation options

This commit is contained in:
moneromooo-monero
2018-03-16 11:55:56 +00:00
parent 65ea07af61
commit 22a1114501
4 changed files with 79 additions and 0 deletions

View File

@@ -829,6 +829,21 @@ bool Wallet::setRing(const QString &key_image, const QString &ring, bool relativ
return m_walletImpl->setRing(key_image.toStdString(), cring, relative);
}
void Wallet::segregatePreForkOutputs(bool segregate)
{
m_walletImpl->segregatePreForkOutputs(segregate);
}
void Wallet::segregationHeight(quint64 height)
{
m_walletImpl->segregationHeight(height);
}
void Wallet::keyReuseMitigation2(bool mitigation)
{
m_walletImpl->keyReuseMitigation2(mitigation);
}
Wallet::Wallet(Monero::Wallet *w, QObject *parent)
: QObject(parent)
, m_walletImpl(w)

View File

@@ -288,6 +288,11 @@ public:
Q_INVOKABLE QString getRings(const QString &txid);
Q_INVOKABLE bool setRing(const QString &key_image, const QString &ring, bool relative);
// key reuse mitigation options
Q_INVOKABLE void segregatePreForkOutputs(bool segregate);
Q_INVOKABLE void segregationHeight(quint64 height);
Q_INVOKABLE void keyReuseMitigation2(bool mitigation);
// TODO: setListenter() when it implemented in API
signals:
// emitted on every event happened with wallet