1
0
Fork 0
forked from lthn/blockchain

replaced vector<bool> top list<bool>, because c++ is insane about some stuff

This commit is contained in:
cryptozoidberg 2024-02-09 19:41:50 +04:00
parent ab226469a9
commit fb73401800
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC
2 changed files with 2 additions and 3 deletions

View file

@ -118,10 +118,9 @@ namespace currency
res.minimum_fee = m_core.get_blockchain_storage().get_core_runtime_config().tx_pool_min_fee;
auto & hf = m_core.get_blockchain_storage().get_core_runtime_config().hard_forks.m_height_the_hardfork_n_active_after;
res.is_hardfok_active.resize(hf.size());
for (size_t i = 0; i != hf.size(); i++)
{
res.is_hardfok_active[i] = m_core.get_blockchain_storage().is_hardfork_active(i);
res.is_hardfok_active.push_back(m_core.get_blockchain_storage().is_hardfork_active(i));
}
//conditional values

View file

@ -793,7 +793,7 @@ namespace currency
uint64_t minimum_fee;
uint64_t last_block_timestamp;
std::string last_block_hash;
std::vector<bool> is_hardfok_active;
std::list<bool> is_hardfok_active;
//market
uint64_t offers_count;