aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/api/wallet.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-03-24 14:34:55 +0200
committerRiccardo Spagni <ric@spagni.net>2017-03-24 14:34:55 +0200
commit92c2d79d1071800885b551e58b2048497fbd01ae (patch)
tree8c05995a27da96f416aa1de94bb36a0485ac1ef5 /src/wallet/api/wallet.cpp
parentMerge pull request #1914 (diff)
parentWallet API: add hard fork info functions (diff)
downloadmonero-92c2d79d1071800885b551e58b2048497fbd01ae.tar.xz
Merge pull request #1915
a8646b09 Wallet API: add hard fork info functions (Jaquee)
Diffstat (limited to 'src/wallet/api/wallet.cpp')
-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;