diff options
author | Jaquee <jaquee.monero@gmail.com> | 2017-03-24 09:59:26 +0100 |
---|---|---|
committer | Jaquee <jaquee.monero@gmail.com> | 2017-03-24 09:59:26 +0100 |
commit | a8646b0957aa60ffb8f3c2db820db16e40398c4e (patch) | |
tree | 5103806500da4144c8c5778c652513bb87a3a4d8 /src/wallet/api/wallet.cpp | |
parent | Merge pull request #1912 (diff) | |
download | monero-a8646b0957aa60ffb8f3c2db820db16e40398c4e.tar.xz |
Wallet API: add hard fork info functions
Diffstat (limited to 'src/wallet/api/wallet.cpp')
-rw-r--r-- | src/wallet/api/wallet.cpp | 12 |
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; |