Skip to content

Commit

Permalink
Fix start nonce parsing bug #407
Browse files Browse the repository at this point in the history
  • Loading branch information
Creepsky committed Jun 16, 2018
1 parent f505d26 commit 68fe194
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/MinerUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,19 +224,7 @@ std::string Burst::getVersionFromPlotFile(const std::string& path)

std::string Burst::getStartNonceFromPlotFile(const std::string& path)
{
auto filenamePos = path.find_last_of("/\\");

if (filenamePos == std::string::npos)
filenamePos = 0;

auto fileNamePart = splitStr(path.substr(filenamePos + 1, path.length() - (filenamePos + 1)), '_');

auto nonceStartPart = fileNamePart[1];

if (isNumberStr(nonceStartPart))
return nonceStartPart;

return "";
return getInformationFromPlotFile(path, 1);
}

std::string Burst::deadlineFormat(Poco::UInt64 seconds)
Expand Down

0 comments on commit 68fe194

Please sign in to comment.