diff options
| author | Riccardo Spagni <ric@spagni.net> | 2017-03-25 17:39:07 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2017-03-25 17:39:07 +0200 |
| commit | b3877868a31d42789dd480936bf89847a1cd979f (patch) | |
| tree | c3364fc94e41652b6df52d58b3eeecf78db02945 /src | |
| parent | 716106c23e22e7e4075024319a5bd3d6f5dfb832 (diff) | |
| parent | 9c4c34d502e7179964061c6af72470e37f9257af (diff) | |
| download | monzero-gui-b3877868a31d42789dd480936bf89847a1cd979f.tar.gz monzero-gui-b3877868a31d42789dd480936bf89847a1cd979f.tar.xz monzero-gui-b3877868a31d42789dd480936bf89847a1cd979f.zip | |
Merge pull request #597
9c4c34d Use new fee multipliers after v5 fork requires #1915 (Jaquee)
f05f0b7 add WalletManager::useForkRules() (Jaquee)
Diffstat (limited to 'src')
| -rw-r--r-- | src/libwalletqt/Wallet.cpp | 5 | ||||
| -rw-r--r-- | src/libwalletqt/Wallet.h | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/libwalletqt/Wallet.cpp b/src/libwalletqt/Wallet.cpp index 96990050..6f397766 100644 --- a/src/libwalletqt/Wallet.cpp +++ b/src/libwalletqt/Wallet.cpp @@ -587,6 +587,11 @@ bool Wallet::rescanSpent() return m_walletImpl->rescanSpent(); } +bool Wallet::useForkRules(quint8 required_version, quint64 earlyBlocks) const +{ + return m_walletImpl->useForkRules(required_version,earlyBlocks); +} + 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 e947ecd0..187df16f 100644 --- a/src/libwalletqt/Wallet.h +++ b/src/libwalletqt/Wallet.h @@ -228,6 +228,9 @@ public: // Rescan spent outputs Q_INVOKABLE bool rescanSpent(); + // check if fork rules should be used + Q_INVOKABLE bool useForkRules(quint8 version, quint64 earlyBlocks) const; + // TODO: setListenter() when it implemented in API signals: // emitted on every event happened with wallet |
