aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/cryptonote_core.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-08-10 10:10:04 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-08-10 11:12:56 +0100
commita1891ebea961889c2e1d1a918d84495b31ec121f (patch)
tree861119558caa3a4598e2f55850facbea75ab8625 /src/cryptonote_core/cryptonote_core.cpp
parent181a008aa35f130e046ec906cbb1b2436a381a62 (diff)
downloadmonzero-core-a1891ebea961889c2e1d1a918d84495b31ec121f.tar.gz
monzero-core-a1891ebea961889c2e1d1a918d84495b31ec121f.tar.xz
monzero-core-a1891ebea961889c2e1d1a918d84495b31ec121f.zip
tests: fix tests build
Add get_fork_version and add_ideal_fork_version to core so cryptonote_protocol does not have to need the Blockchain class directly, as it's not in its dependencies, and add those to the fake core classes in tests too.
Diffstat (limited to 'src/cryptonote_core/cryptonote_core.cpp')
-rw-r--r--src/cryptonote_core/cryptonote_core.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp
index 13e5badd1..62c536ab8 100644
--- a/src/cryptonote_core/cryptonote_core.cpp
+++ b/src/cryptonote_core/cryptonote_core.cpp
@@ -1232,6 +1232,16 @@ namespace cryptonote
return true;
}
//-----------------------------------------------------------------------------------------------
+ uint8_t core::get_ideal_hard_fork_version(uint64_t height) const
+ {
+ return get_blockchain_storage().get_ideal_hard_fork_version(height);
+ }
+ //-----------------------------------------------------------------------------------------------
+ uint8_t core::get_hard_fork_version(uint64_t height) const
+ {
+ return get_blockchain_storage().get_hard_fork_version(height);
+ }
+ //-----------------------------------------------------------------------------------------------
bool core::check_updates()
{
static const char software[] = "monero";