Post
Topic
Board Announcements (Altcoins)
Re: [ANN] Bitcoin Candy - Fork 1:1000 of Bitcoin Cash
by
gusterdd
on 09/05/2018, 05:59:29 UTC
/*if the last 10 blocks are generated in 5 minutes, we tripple the difficulty of the average of the last 10 blocks*/
if(height>nNewRuleHeight && sum_last10_time <= 5*60)   

    arith_uint256 avg_last10_target;
    avg_last10_target = sum_last10_target/10;
    if(next_target > avg_last10_target/3)  next_target = avg_last10_target/3;   
}


New pow function will solve block time fluctuation. Thanks Devs.  Wink