mirror of
https://github.com/monero-project/monero.git
synced 2026-08-03 09:21:35 -07:00
Merge pull request #5346
c84ea299cryptonote_basic: some more minor speedups (moneromooo-monero)e40eb2adcryptonote_basic: speedup calculate_block_hash (moneromooo-monero)547a9708cryptonote: block parsing + hash calculation speedup (moneromooo-monero)11604b6dblockchain: avoid unneeded block copy (moneromooo-monero)8461df04save some database calls when getting top block hash and height (moneromooo-monero)3bbc3661Avoid repeated (de)serialization when syncing (moneromooo-monero)
This commit is contained in:
@@ -2348,9 +2348,7 @@ void wallet2::get_short_chain_history(std::list<crypto::hash>& ids, uint64_t gra
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
void wallet2::parse_block_round(const cryptonote::blobdata &blob, cryptonote::block &bl, crypto::hash &bl_id, bool &error) const
|
||||
{
|
||||
error = !cryptonote::parse_and_validate_block_from_blob(blob, bl);
|
||||
if (!error)
|
||||
bl_id = get_block_hash(bl);
|
||||
error = !cryptonote::parse_and_validate_block_from_blob(blob, bl, bl_id);
|
||||
}
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
void wallet2::pull_blocks(uint64_t start_height, uint64_t &blocks_start_height, const std::list<crypto::hash> &short_chain_history, std::vector<cryptonote::block_complete_entry> &blocks, std::vector<cryptonote::COMMAND_RPC_GET_BLOCKS_FAST::block_output_indices> &o_indices)
|
||||
|
||||
Reference in New Issue
Block a user