Skip to content

Commit

Permalink
Merge pull request #64 from piratelinux/dev
Browse files Browse the repository at this point in the history
for 0.9.7.2
  • Loading branch information
dbkeys authored Jul 4, 2018
2 parents ce45da0 + e9cf800 commit d5d9d3d
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 7 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ AC_PREREQ([2.60])
define(_CLIENT_VERSION_MAJOR, 0)
define(_CLIENT_VERSION_MINOR, 9)
define(_CLIENT_VERSION_REVISION, 7)
define(_CLIENT_VERSION_BUILD, 1)
define(_CLIENT_VERSION_BUILD, 2)
define(_CLIENT_VERSION_IS_RELEASE, true)
define(_COPYRIGHT_YEAR, 2018)
AC_INIT([Bitmark Core],[_CLIENT_VERSION_MAJOR._CLIENT_VERSION_MINOR._CLIENT_VERSION_REVISION],[[email protected]],[bitmark])
Expand Down
2 changes: 1 addition & 1 deletion src/clientversion.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#define CLIENT_VERSION_MAJOR 0
#define CLIENT_VERSION_MINOR 9
#define CLIENT_VERSION_REVISION 7
#define CLIENT_VERSION_BUILD 1
#define CLIENT_VERSION_BUILD 2

// Set to true for release, false for prerelease (rc: release candidate) or test build
#define CLIENT_VERSION_IS_RELEASE false
Expand Down
2 changes: 1 addition & 1 deletion src/equihash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ bool Equihash<N,K>::IsValidSolution(const eh_HashState& base_state, std::vector<
return false;
}

LogPrintf("good solution size\n");
//LogPrintf("good solution size\n");

std::vector<FullStepRow<FinalFullWidth>> X;
X.reserve(1 << K);
Expand Down
5 changes: 5 additions & 0 deletions src/rpcmisc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ Value getinfo(const Array& params, bool fHelp)
proxyType proxy;
GetProxy(NET_IPV4, proxy);

if (!confAlgoIsSet) {
miningAlgo = GetArg("-miningalgo", miningAlgo);
confAlgoIsSet = true;
}

Object obj;
obj.push_back(Pair("version", (int)CLIENT_VERSION));
obj.push_back(Pair("protocolversion",(int)PROTOCOL_VERSION));
Expand Down
18 changes: 14 additions & 4 deletions src/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -472,14 +472,20 @@ void ParseParameters(int argc, const char* const argv[])
strValue = str.substr(is_index+1);
str = str.substr(0, is_index);
}
if (fDebug) LogPrintf("str = %s\n",str.c_str());
#ifdef WIN32
boost::to_lower(str);
if (boost::algorithm::starts_with(str, "/"))
str = "-" + str.substr(1);
#endif
if (str[0] != '-')
break;


if (!str.compare(std::string("-algo"))) {
if (fDebug) LogPrintf("set algo to miningalgo");
str = std::string("-miningalgo");
}

mapArgs[str] = strValue;
mapMultiArgs[str].push_back(strValue);
}
Expand Down Expand Up @@ -1033,9 +1039,13 @@ void ReadConfigFile(map<string, string>& mapSettingsRet,
string strKey = string("-") + it->string_key;
if (mapSettingsRet.count(strKey) == 0)
{
mapSettingsRet[strKey] = it->value[0];
// interpret nofoo=1 as foo=0 (and nofoo=0 as foo=1) as long as foo not set)
InterpretNegativeSetting(strKey, mapSettingsRet);
if (!strKey.compare(string("-algo"))) {
if (fDebug) LogPrintf("set algo to miningalgo");
strKey = string("-miningalgo");
}
mapSettingsRet[strKey] = it->value[0];
// interpret nofoo=1 as foo=0 (and nofoo=0 as foo=1) as long as foo not set)
InterpretNegativeSetting(strKey, mapSettingsRet);
}
mapMultiSettingsRet[strKey].push_back(it->value[0]);
}
Expand Down

0 comments on commit d5d9d3d

Please sign in to comment.