Skip to content

Commit

Permalink
disable start diff for testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
BixBite-project committed May 15, 2018
1 parent 4000a6d commit 3b87c48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cryptonote_core/blockchain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -679,9 +679,9 @@ difficulty_type Blockchain::get_difficulty_for_next_block()
std::vector<difficulty_type> difficulties;
auto height = m_db->height();
// Diff for start testnet network hashrate
if (m_testnet && (uint64_t)height >= 1 && (uint64_t)height <= 1 + (uint64_t)DIFFICULTY_BLOCKS_COUNT_V2){
/* if (m_testnet && (uint64_t)height >= 1 && (uint64_t)height <= 1 + (uint64_t)DIFFICULTY_BLOCKS_COUNT_V2){
return (difficulty_type) 10000000;
}
}*/
// Reset network hashrate to 2.0 MHz when hardfork v3 comes
/* if (!m_testnet && (uint64_t)height >= MAINNET_HARDFORK_V3_HEIGHT && (uint64_t)height <= MAINNET_HARDFORK_V3_HEIGHT + (uint64_t)DIFFICULTY_BLOCKS_COUNT_V2){
return (difficulty_type) 480000000;
Expand Down

0 comments on commit 3b87c48

Please sign in to comment.