aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-03-16 11:55:56 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-03-26 20:57:33 +0100
commit22a111450128dcd105452d4d570a11779f1c1e9f (patch)
tree7405cb0540cc8488a197eee802c0ecb445f125cb /src
parent65ea07af612751ab0989a8e01d76bad7bc3c2869 (diff)
downloadmonzero-gui-22a111450128dcd105452d4d570a11779f1c1e9f.tar.gz
monzero-gui-22a111450128dcd105452d4d570a11779f1c1e9f.tar.xz
monzero-gui-22a111450128dcd105452d4d570a11779f1c1e9f.zip
Add segregation key reuse mitigation options
Diffstat (limited to 'src')
-rw-r--r--src/libwalletqt/Wallet.cpp15
-rw-r--r--src/libwalletqt/Wallet.h5
2 files changed, 20 insertions, 0 deletions
diff --git a/src/libwalletqt/Wallet.cpp b/src/libwalletqt/Wallet.cpp
index 1da4e787..74649ce7 100644
--- a/src/libwalletqt/Wallet.cpp
+++ b/src/libwalletqt/Wallet.cpp
@@ -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)
diff --git a/src/libwalletqt/Wallet.h b/src/libwalletqt/Wallet.h
index dbe1d0ce..c4b1dceb 100644
--- a/src/libwalletqt/Wallet.h
+++ b/src/libwalletqt/Wallet.h
@@ -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