mirror of
https://github.com/monero-project/monero.git
synced 2025-01-19 01:04:38 +00:00
Merge pull request #9621
fe17069
Blockchain: get height of RingCT fork programmatically (jeffro256)
This commit is contained in:
commit
38668822b7
1 changed files with 2 additions and 11 deletions
|
@ -2364,17 +2364,8 @@ void Blockchain::get_output_key_mask_unlocked(const uint64_t& amount, const uint
|
|||
bool Blockchain::get_output_distribution(uint64_t amount, uint64_t from_height, uint64_t to_height, uint64_t &start_height, std::vector<uint64_t> &distribution, uint64_t &base) const
|
||||
{
|
||||
// rct outputs don't exist before v4
|
||||
if (amount == 0)
|
||||
{
|
||||
switch (m_nettype)
|
||||
{
|
||||
case STAGENET: start_height = stagenet_hard_forks[3].height; break;
|
||||
case TESTNET: start_height = testnet_hard_forks[3].height; break;
|
||||
case MAINNET: start_height = mainnet_hard_forks[3].height; break;
|
||||
case FAKECHAIN: start_height = 0; break;
|
||||
default: return false;
|
||||
}
|
||||
}
|
||||
if (amount == 0 && m_nettype != network_type::FAKECHAIN)
|
||||
start_height = m_hardfork->get_earliest_ideal_height_for_version(HF_VERSION_DYNAMIC_FEE);
|
||||
else
|
||||
start_height = 0;
|
||||
base = 0;
|
||||
|
|
Loading…
Reference in a new issue