mirror of
https://github.com/monero-project/monero.git
synced 2025-07-22 15:20:34 -04:00
Merge pull request #631
bcac101
daemon: fix a few issues reported by valgrind (moneromooo-monero)a7e8174
tx_pool: fix serialization of new relayed data (moneromooo-monero)601ad76
hardfork: fix mixup in indexing variable in get_voting_info (moneromooo-monero)444e22f
blockchain: remove unused timer (moneromooo-monero)7edfdd8
blockchain: fix m_sync_counter uninitialized variable use (moneromooo-monero)d97582c
epee: use generate_random_bytes for new random uuids (moneromooo-monero)17c7c9c
epee: remove dodgy random code that nobody uses (moneromooo-monero)
This commit is contained in:
commit
39d73d2a27
6 changed files with 51 additions and 44 deletions
|
@ -100,7 +100,7 @@ static const uint64_t testnet_hard_fork_version_1_till = 624633;
|
|||
//------------------------------------------------------------------
|
||||
Blockchain::Blockchain(tx_memory_pool& tx_pool) :
|
||||
m_db(), m_tx_pool(tx_pool), m_timestamps_and_difficulties_height(0), m_current_block_cumul_sz_limit(0), m_is_in_checkpoint_zone(false),
|
||||
m_is_blockchain_storing(false), m_enforce_dns_checkpoints(false), m_max_prepare_blocks_threads(4), m_db_blocks_per_sync(1), m_db_sync_mode(db_async), m_fast_sync(true)
|
||||
m_is_blockchain_storing(false), m_enforce_dns_checkpoints(false), m_max_prepare_blocks_threads(4), m_db_blocks_per_sync(1), m_db_sync_mode(db_async), m_fast_sync(true), m_sync_counter(0)
|
||||
{
|
||||
LOG_PRINT_L3("Blockchain::" << __func__);
|
||||
}
|
||||
|
@ -2144,7 +2144,6 @@ bool Blockchain::check_tx_inputs(const transaction& tx, uint64_t* pmax_used_bloc
|
|||
|
||||
// make sure that output being spent matches up correctly with the
|
||||
// signature spending it.
|
||||
TIME_MEASURE_START(aa);
|
||||
if (!check_tx_input(in_to_key, tx_prefix_hash, tx.signatures[sig_index], pubkeys[sig_index], pmax_used_block_height))
|
||||
{
|
||||
it->second[in_to_key.k_image] = false;
|
||||
|
|
|
@ -373,7 +373,7 @@ bool HardFork::get_voting_info(uint8_t version, uint32_t &window, uint32_t &vote
|
|||
votes = 0;
|
||||
for (size_t n = version; n < 256; ++n)
|
||||
votes += last_versions[n];
|
||||
threshold = (window * heights[current_version].threshold + 99) / 100;
|
||||
threshold = (window * heights[current_fork_index].threshold + 99) / 100;
|
||||
//assert((votes >= threshold) == enabled);
|
||||
earliest_height = get_earliest_ideal_height_for_version(version);
|
||||
voting = heights.back().version;
|
||||
|
|
|
@ -239,8 +239,6 @@ namespace boost
|
|||
ar & td.last_failed_height;
|
||||
ar & td.last_failed_id;
|
||||
ar & td.receive_time;
|
||||
if (version < 9)
|
||||
return;
|
||||
ar & td.last_relayed_time;
|
||||
ar & td.relayed;
|
||||
if (version < 11)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue