Add a shared ringdb management page - rings and blackballed outputs

This commit is contained in:
moneromooo-monero
2018-03-07 00:01:53 +00:00
parent fdaf557b99
commit 65ea07af61
11 changed files with 532 additions and 9 deletions

View File

@@ -4,6 +4,7 @@
#include <QObject>
#include <QTime>
#include <QMutex>
#include <QList>
#include <QtConcurrent/QtConcurrent>
#include "wallet/api/wallet2_api.h" // we need to have an access to the Monero::Wallet::Status enum here;
@@ -276,6 +277,17 @@ public:
QString getDaemonLogPath() const;
QString getWalletLogPath() const;
// Blackalled outputs
Q_INVOKABLE bool blackballOutput(const QString &pubkey);
Q_INVOKABLE bool blackballOutputs(const QList<QString> &pubkeys, bool add);
Q_INVOKABLE bool blackballOutputs(const QString &filename, bool add);
Q_INVOKABLE bool unblackballOutput(const QString &pubkey);
// Rings
Q_INVOKABLE QString getRing(const QString &key_image);
Q_INVOKABLE QString getRings(const QString &txid);
Q_INVOKABLE bool setRing(const QString &key_image, const QString &ring, bool relative);
// TODO: setListenter() when it implemented in API
signals:
// emitted on every event happened with wallet