aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/api/wallet.cpp
diff options
context:
space:
mode:
authorJaquee <jaquee.monero@gmail.com>2017-03-24 09:59:26 +0100
committerJaquee <jaquee.monero@gmail.com>2017-03-24 09:59:26 +0100
commita8646b0957aa60ffb8f3c2db820db16e40398c4e (patch)
tree5103806500da4144c8c5778c652513bb87a3a4d8 /src/wallet/api/wallet.cpp
parentMerge pull request #1912 (diff)
downloadmonero-a8646b0957aa60ffb8f3c2db820db16e40398c4e.tar.xz
Wallet API: add hard fork info functions
Diffstat (limited to '')
-rw-r--r--src/wallet/api/wallet.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp
index d5c2fbda2..fc2d6e755 100644
--- a/src/wallet/api/wallet.cpp
+++ b/src/wallet/api/wallet.cpp
@@ -1413,6 +1413,18 @@ bool WalletImpl::rescanSpent()
}
return true;
}
+
+
+void WalletImpl::hardForkInfo(uint8_t &version, uint64_t &earliest_height) const
+{
+ m_wallet->get_hard_fork_info(version, earliest_height);
+}
+
+bool WalletImpl::useForkRules(uint8_t version, int64_t early_blocks) const
+{
+ return m_wallet->use_fork_rules(version,early_blocks);
+}
+
} // namespace
namespace Bitmonero = Monero;