Skip to content
Permalink
Browse files

blockchain: initialize pow to ff..ff

as a safety to reject if it somehow does not get initialised
  • Loading branch information...
moneromooo-monero committed Oct 10, 2019
1 parent bf52579 commit 119863e4a193ec260667e9d427725bf3fa2ffe6e
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/cryptonote_core/blockchain.cpp
@@ -3700,7 +3700,8 @@ bool Blockchain::handle_block_to_main_chain(const block& bl, const crypto::hash&

TIME_MEASURE_START(longhash_calculating_time);

crypto::hash proof_of_work = null_hash;
crypto::hash proof_of_work;
memset(proof_of_work.data, 0xff, sizeof(proof_of_work.data));

// Formerly the code below contained an if loop with the following condition
// !m_checkpoints.is_in_checkpoint_zone(get_current_blockchain_height())

0 comments on commit 119863e

Please sign in to comment.
You can’t perform that action at this time.