File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
# cmake global
2
2
cmake_minimum_required (VERSION 2.8.12 )
3
3
4
- set (PROJECT_VERSION "2.1.10 " )
4
+ set (PROJECT_VERSION "2.1.11 " )
5
5
if (${CMAKE_VERSION} VERSION_GREATER 3.0 )
6
6
cmake_policy (SET CMP0042 OLD ) # fix MACOSX_RPATH
7
7
cmake_policy (SET CMP0048 NEW ) # allow VERSION argument in project()
Original file line number Diff line number Diff line change @@ -606,6 +606,7 @@ class GenericFarm
606
606
bool submitProof (h256 _nonce, Miner* _m)
607
607
{
608
608
// return true if miner should stop and wait for new work, false to keep mining
609
+
609
610
bool shouldStop = false ;
610
611
611
612
LogF << " Trace: GenericFarm.submitProof - nonce = " << _nonce.hex ().substr (0 , 8 ) << " , miner = " << _m->index ();
@@ -617,7 +618,7 @@ class GenericFarm
617
618
- setWork has been called with a new work package
618
619
*/
619
620
620
- WriteGuard l (x_minerWork );
621
+ Guard l (x_solution );
621
622
622
623
// check to see if the main loop is still processing a previous solution
623
624
if (solutionMiner == -1 )
@@ -627,6 +628,7 @@ class GenericFarm
627
628
solution = _nonce;
628
629
if (m_opMode == OperationMode::Solo)
629
630
{
631
+ WriteGuard lck (x_minerWork);
630
632
m_challenge.clear ();
631
633
for (auto const & m : m_miners)
632
634
if (m != _m)
@@ -649,7 +651,7 @@ class GenericFarm
649
651
{
650
652
// check if any of the miners has found a solution
651
653
652
- WriteGuard l (x_minerWork );
654
+ Guard l (x_solution );
653
655
654
656
if (solutionMiner != -1 )
655
657
{
@@ -710,6 +712,7 @@ class GenericFarm
710
712
711
713
h256 solution;
712
714
int solutionMiner = -1 ;
715
+ mutable Mutex x_solution;
713
716
714
717
};
715
718
You can’t perform that action at this time.
0 commit comments