Use new fee multipliers after v5 fork

requires #1915
This commit is contained in:
Jaquee
2017-03-23 22:54:35 +01:00
parent f05f0b73c3
commit 9c4c34d502
6 changed files with 35 additions and 13 deletions

View File

@@ -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)

View File

@@ -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

View File

@@ -338,16 +338,6 @@ QString WalletManager::checkUpdates(const QString &software, const QString &subd
return QString::fromStdString(std::get<1>(result) + "|" + std::get<2>(result) + "|" + std::get<3>(result) + "|" + std::get<4>(result));
}
bool WalletManager::useForkRules(quint8 required_version) const
{
quint64 earliest_height;
quint8 version;
m_pimpl->hardForkInfo(version, earliest_height);
return version >= required_version;
}
WalletManager::WalletManager(QObject *parent) : QObject(parent)
{
m_pimpl = Monero::WalletManagerFactory::getWalletManager();

View File

@@ -136,8 +136,6 @@ public:
Q_INVOKABLE bool saveQrCode(const QString &, const QString &) const;
Q_INVOKABLE QString checkUpdates(const QString &software, const QString &subdir) const;
Q_INVOKABLE bool useForkRules(quint8 version) const;
signals:
void walletOpened(Wallet * wallet);