mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-27 05:13:25 +01:00
Merge pull request #536
9079a32
Fix typo (warptangent)3796941
blockchain.cpp: Change indentation from 4 to 2 spaces (warptangent)725acc7
Replace tabs with two spaces for consistency with rest of codebase (warptangent)
This commit is contained in:
commit
814c8241cd
@ -1010,7 +1010,7 @@ bool Blockchain::create_block_template(block& b, const account_public_address& m
|
||||
b.timestamp = time(NULL);
|
||||
|
||||
diffic = get_difficulty_for_next_block();
|
||||
CHECK_AND_ASSERT_MES(diffic, false, "difficulty owverhead.");
|
||||
CHECK_AND_ASSERT_MES(diffic, false, "difficulty overhead.");
|
||||
|
||||
median_size = m_current_block_cumul_sz_limit / 2;
|
||||
already_generated_coins = m_db->get_block_already_generated_coins(height - 1);
|
||||
@ -1270,7 +1270,6 @@ bool Blockchain::handle_alternative_block(const block& b, const crypto::hash& id
|
||||
LOG_PRINT_RED_L1("Block with id: " << epee::string_tools::pod_to_hex(id) << " (as alternative) has incorrect miner transaction.");
|
||||
bvc.m_verifivation_failed = true;
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
// FIXME:
|
||||
@ -1396,7 +1395,6 @@ bool Blockchain::handle_get_objects(NOTIFY_REQUEST_GET_OBJECTS::request& arg, NO
|
||||
//pack transactions
|
||||
BOOST_FOREACH(transaction& tx, txs)
|
||||
e.txs.push_back(t_serializable_object_to_blob(tx));
|
||||
|
||||
}
|
||||
//get another transactions, if need
|
||||
std::list<transaction> txs;
|
||||
|
@ -661,7 +661,7 @@ bool blockchain_storage::create_block_template(block& b, const account_public_ad
|
||||
b.timestamp = time(NULL);
|
||||
height = m_blocks.size();
|
||||
diffic = get_difficulty_for_next_block();
|
||||
CHECK_AND_ASSERT_MES(diffic, false, "difficulty owverhead.");
|
||||
CHECK_AND_ASSERT_MES(diffic, false, "difficulty overhead.");
|
||||
|
||||
median_size = m_current_block_cumul_sz_limit / 2;
|
||||
already_generated_coins = m_blocks.back().already_generated_coins;
|
||||
|
@ -357,7 +357,6 @@ namespace cryptonote
|
||||
|
||||
if(local_template_ver != m_template_no)
|
||||
{
|
||||
|
||||
CRITICAL_REGION_BEGIN(m_template_lock);
|
||||
b = m_template;
|
||||
local_diff = m_diffic;
|
||||
|
@ -592,7 +592,6 @@ namespace cryptonote
|
||||
epee::net_utils::data_logger::get_instance().add_data("calc_time", block_process_time + transactions_process_time);
|
||||
epee::net_utils::data_logger::get_instance().add_data("block_processing", 1);
|
||||
|
||||
|
||||
} // each download block
|
||||
m_core.cleanup_handle_incoming_blocks();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user