mirror of
https://github.com/monero-project/monero.git
synced 2025-08-05 09:24:24 -04:00
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:
parent
181a008aa3
commit
a1891ebea9
5 changed files with 30 additions and 2 deletions
|
@ -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";
|
||||
|
|
|
@ -620,6 +620,20 @@ namespace cryptonote
|
|||
*/
|
||||
uint64_t get_target_blockchain_height() const;
|
||||
|
||||
/**
|
||||
* @brief return the ideal hard fork version for a given block height
|
||||
*
|
||||
* @return what it says above
|
||||
*/
|
||||
uint8_t get_ideal_hard_fork_version(uint64_t height) const;
|
||||
|
||||
/**
|
||||
* @brief return the hard fork version for a given block height
|
||||
*
|
||||
* @return what it says above
|
||||
*/
|
||||
uint8_t get_hard_fork_version(uint64_t height) const;
|
||||
|
||||
/**
|
||||
* @brief gets start_time
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue