diff options
author | Russell Yanofsky <russ@yanofsky.org> | 2017-07-28 22:54:31 -0400 |
---|---|---|
committer | Russell Yanofsky <russ@yanofsky.org> | 2019-02-22 15:43:02 -0400 |
commit | c5e59a96a8561b6a0bcaba0ede2d53dbaac113b0 (patch) | |
tree | 6e2c080795bfea40396407131096fd04b9d5d44d /src/interfaces | |
parent | 6d6bcc77c058fbcfd39c7e3050bbe82fc89024cf (diff) |
Remove uses of GetAdjustedTime in wallet code
This commit does not change behavior.
Diffstat (limited to 'src/interfaces')
-rw-r--r-- | src/interfaces/chain.cpp | 2 | ||||
-rw-r--r-- | src/interfaces/chain.h | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/interfaces/chain.cpp b/src/interfaces/chain.cpp index 4abb1e638f..a654f55f55 100644 --- a/src/interfaces/chain.cpp +++ b/src/interfaces/chain.cpp @@ -14,6 +14,7 @@ #include <protocol.h> #include <sync.h> #include <threadsafety.h> +#include <timedata.h> #include <txmempool.h> #include <uint256.h> #include <util/system.h> @@ -237,6 +238,7 @@ public: } bool getPruneMode() override { return ::fPruneMode; } bool p2pEnabled() override { return g_connman != nullptr; } + int64_t getAdjustedTime() override { return GetAdjustedTime(); } }; } // namespace diff --git a/src/interfaces/chain.h b/src/interfaces/chain.h index b4a458cba6..c5aa67d0d7 100644 --- a/src/interfaces/chain.h +++ b/src/interfaces/chain.h @@ -164,6 +164,9 @@ public: //! Check if p2p enabled. virtual bool p2pEnabled() = 0; + + //! Get adjusted time. + virtual int64_t getAdjustedTime() = 0; }; //! Interface to let node manage chain clients (wallets, or maybe tools for |