aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2_api.h
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/wallet2_api.h
parentMerge pull request #1912 (diff)
downloadmonero-a8646b0957aa60ffb8f3c2db820db16e40398c4e.tar.xz
Wallet API: add hard fork info functions
Diffstat (limited to '')
-rw-r--r--src/wallet/wallet2_api.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wallet/wallet2_api.h b/src/wallet/wallet2_api.h
index eee1c8d3c..17d0caf7d 100644
--- a/src/wallet/wallet2_api.h
+++ b/src/wallet/wallet2_api.h
@@ -296,7 +296,10 @@ struct Wallet
virtual std::string address() const = 0;
virtual std::string path() const = 0;
virtual bool testnet() const = 0;
-
+ //! returns current hard fork info
+ virtual void hardForkInfo(uint8_t &version, uint64_t &earliest_height) const = 0;
+ //! check if hard fork rules should be used
+ virtual bool useForkRules(uint8_t version, int64_t early_blocks) const = 0;
/*!
* \brief integratedAddress - returns integrated address for current wallet address and given payment_id.
* if passed "payment_id" param is an empty string or not-valid payment id string
@@ -686,9 +689,6 @@ struct WalletManager
//! returns current mining hash rate (0 if not mining)
virtual double miningHashRate() const = 0;
- //! returns current hard fork info
- virtual void hardForkInfo(uint8_t &version, uint64_t &earliest_height) const = 0;
-
//! returns current block target
virtual uint64_t blockTarget() const = 0;