File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -820,21 +820,20 @@ class MinerCLI
820
820
if (_challenge != challenge)
821
821
{
822
822
// when queried for the most recent challenge, infura nodes will occasionally respond with the
823
- // previous one. this only applies to solo mining, but doesn't hurt to do it for pool mining .
823
+ // previous one. this only applies to solo mining. when pool mining, always use what the pool gives us .
824
824
bool seenBefore = false ;
825
825
for (bytes c : recentChallenges)
826
826
seenBefore = (seenBefore || (c == _challenge));
827
- if (!seenBefore)
827
+ if (!seenBefore || m_opMode == OperationMode::Pool )
828
828
{
829
829
recentChallenges.push_front (_challenge);
830
830
if (recentChallenges.size () > 5 )
831
831
recentChallenges.pop_back ();
832
832
challenge = _challenge;
833
833
target = _target;
834
- LogS << " New challenge : " << toHex (_challenge).substr (0 , 8 );
834
+ LogB << " New challenge : " << toHex (_challenge).substr (0 , 8 );
835
835
f.setWork_token (challenge, target);
836
836
workRPC.setChallenge (challenge);
837
-
838
837
}
839
838
}
840
839
if (_target != target)
You can’t perform that action at this time.
0 commit comments