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.
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user