Skip to content

Commit

Permalink
3.4.0.6
Browse files Browse the repository at this point in the history
Gridcoin Research 3.4.0.6/24.5/356
Leisure Upgrade

- Merged Jiro's changes to make Mac compile
- Added more to debug crash issue reported by Quez & CM
  • Loading branch information
gridcoin committed Jun 11, 2015
1 parent 0c7efce commit 2a9dbd6
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 20 deletions.
2 changes: 1 addition & 1 deletion Makefile.Debug
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#############################################################################
# Makefile for building: gridcoinresearch
# Generated by qmake (2.01a) (Qt 4.8.4) on: Thu Jun 11 11:02:25 2015
# Generated by qmake (2.01a) (Qt 4.8.4) on: Thu Jun 11 15:13:59 2015
# Project: gridcoinstake.pro
# Template: app
#############################################################################
Expand Down
2 changes: 1 addition & 1 deletion Makefile.Release
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#############################################################################
# Makefile for building: gridcoinresearch
# Generated by qmake (2.01a) (Qt 4.8.4) on: Thu Jun 11 11:02:26 2015
# Generated by qmake (2.01a) (Qt 4.8.4) on: Thu Jun 11 15:13:59 2015
# Project: gridcoinstake.pro
# Template: app
#############################################################################
Expand Down
2 changes: 1 addition & 1 deletion src/clientversion.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#define CLIENT_VERSION_MAJOR 3
#define CLIENT_VERSION_MINOR 4
#define CLIENT_VERSION_REVISION 0
#define CLIENT_VERSION_BUILD 5
#define CLIENT_VERSION_BUILD 6

// Converts the parameter X to a string after macro replacement on X has been performed.
// Don't merge these into one macro!
Expand Down
10 changes: 6 additions & 4 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3824,7 +3824,7 @@ void GridcoinServices()
printf(" {CPIDs Re-Loaded} ");
}

if (TimerMain("check_for_autoupgrade",60))
if (TimerMain("check_for_autoupgrade",240))
{
bCheckedForUpgradeLive = true;
}
Expand All @@ -3843,6 +3843,7 @@ void GridcoinServices()
bCheckedForUpgradeLive=false;
printf("{Checking for Upgrade} ");
CheckForUpgrade();
printf("{Done checking for upgrade} ");
}
#endif

Expand Down Expand Up @@ -4942,15 +4943,15 @@ bool TallyNetworkAverages(bool ColdBoot)
bNetAveragesLoaded = true;
return true;
}
if (fDebug) printf("Gathering network avgs (begin)\r\n");
printf("Gathering network avgs (begin)\r\n");
//If we did this within the last 10 mins, we are fine:
if (IsLockTimeWithinMinutes(nLastTallied,10)) return true;
nLastTallied = GetAdjustedTime();

bNetAveragesLoaded = false;
//Clear the neural network hash buffer
mvNeuralNetworkHash.clear();

if (mvNeuralNetworkHash.size() > 1) mvNeuralNetworkHash.clear();
printf(".$1.");
LOCK(cs_main);
try
{
Expand Down Expand Up @@ -5092,6 +5093,7 @@ bool TallyNetworkAverages(bool ColdBoot)
bNetAveragesLoaded=true;
}
bNetAveragesLoaded=true;
printf("2");
return false;

}
Expand Down
13 changes: 0 additions & 13 deletions src/qt/bitcoingui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -615,8 +615,6 @@ int RebootClient()

void CheckForUpgrade()
{
try
{
if (bCheckedForUpgrade == false && !fTestNet && bProjectsInitialized)
{
int nNeedsUpgrade = 0;
Expand All @@ -626,18 +624,7 @@ void CheckForUpgrade()
#endif
printf("Needs upgraded %f\r\n",(double)nNeedsUpgrade);
if (nNeedsUpgrade) UpgradeClient();






}
}
catch(...)
{

}
}


Expand Down

0 comments on commit 2a9dbd6

Please sign in to comment.