@@ -700,9 +700,14 @@ static void processBroadcastMessage(const unsigned long long processorNumber, Re
700700 {
701701 unsigned int solutionScore = (*score)(processorNumber, request->destinationPublicKey , solution_miningSeed, solution_nonce);
702702 score_engine::AlgoType selectedAlgo = score_engine::getAlgoType (solution_nonce.m256i_u8 );
703- const int threshold = (system.epoch < MAX_NUMBER_EPOCH) ?
704- solutionThreshold[system.epoch ][selectedAlgo]
703+ int threshold = (system.epoch < MAX_NUMBER_EPOCH) ?
704+ solutionThreshold[system.epoch ][selectedAlgo]
705705 : score_engine::DEFAUL_SOLUTION_THRESHOLD[selectedAlgo];
706+ if (selectedAlgo == score_engine::AlgoType::Addition
707+ && system.tick < ADDITION_SOLUTION_THRESHOLD_ACTIVATION_TICK)
708+ {
709+ threshold = ADDITION_SOLUTION_THRESHOLD_PRE_ACTIVATION;
710+ }
706711 if (system.numberOfSolutions < MAX_NUMBER_OF_SOLUTIONS
707712 && score->isValidScore (solutionScore, selectedAlgo)
708713 && score->isGoodScore (solutionScore, threshold, selectedAlgo))
@@ -1413,6 +1418,10 @@ static void processRequestSystemInfo(Peer* peer, RequestResponseHeader* header)
14131418 respondedSystemInfo.randomMiningSeed = score->currentRandomSeed ;
14141419 respondedSystemInfo.solutionThreshold = (system.epoch < MAX_NUMBER_EPOCH) ? solutionThreshold[system.epoch ][score_engine::AlgoType::HyperIdentity] : HYPERIDENTITY_SOLUTION_THRESHOLD_DEFAULT;
14151420 respondedSystemInfo.solutionAdditionalThreshold = (system.epoch < MAX_NUMBER_EPOCH) ? solutionThreshold[system.epoch ][score_engine::AlgoType::Addition] : ADDITION_SOLUTION_THRESHOLD_DEFAULT;
1421+ if (system.tick < ADDITION_SOLUTION_THRESHOLD_ACTIVATION_TICK)
1422+ {
1423+ respondedSystemInfo.solutionAdditionalThreshold = ADDITION_SOLUTION_THRESHOLD_PRE_ACTIVATION;
1424+ }
14161425
14171426 respondedSystemInfo.totalSpectrumAmount = spectrumInfo.totalAmount ;
14181427 respondedSystemInfo.currentEntityBalanceDustThreshold = (dustThresholdBurnAll > dustThresholdBurnHalf) ? dustThresholdBurnAll : dustThresholdBurnHalf;
@@ -2761,9 +2770,14 @@ static void processTickTransactionSolution(const MiningSolutionTransaction* tran
27612770 {
27622771 resourceTestingDigest ^= solutionScore;
27632772 KangarooTwelve (&resourceTestingDigest, sizeof (resourceTestingDigest), &resourceTestingDigest, sizeof (resourceTestingDigest));
2764- const int threshold = (system.epoch < MAX_NUMBER_EPOCH) ?
2773+ int threshold = (system.epoch < MAX_NUMBER_EPOCH) ?
27652774 solutionThreshold[system.epoch ][selectedAlgo]
27662775 : score_engine::DEFAUL_SOLUTION_THRESHOLD[selectedAlgo];
2776+ if (selectedAlgo == score_engine::AlgoType::Addition
2777+ && system.tick < ADDITION_SOLUTION_THRESHOLD_ACTIVATION_TICK)
2778+ {
2779+ threshold = ADDITION_SOLUTION_THRESHOLD_PRE_ACTIVATION;
2780+ }
27672781 if (score->isGoodScore (solutionScore, threshold, selectedAlgo))
27682782 {
27692783 // Solution deposit return
0 commit comments