Skip to content

Commit

Permalink
Fixed same log problerm
Browse files Browse the repository at this point in the history
updata version to 0.17.3
  • Loading branch information
rangershi authored and Ben002 committed Jul 23, 2018
1 parent befcf85 commit 1ba13f9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CMakeModules/SbtcOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ macro(configure_project)

SET(HAVE_BUILD_INFO 1)
SET(GIT_ARCHIVE 1)
SET(CLIENT_VERSION_BUILD 1)
SET(CLIENT_VERSION_BUILD 3)
SET(CLIENT_VERSION_MAJOR 0)
SET(CLIENT_VERSION_MINOR 17)
SET(CLIENT_VERSION_REVISION 0)
Expand Down
12 changes: 6 additions & 6 deletions src/chaincontrol/chaincomponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2195,13 +2195,13 @@ void CChainComponent::ThreadImport()
FILE *file = OpenBlockFile(pos, true);
if (!file)
break; // This error is logged in OpenBlockFile
ILogFormat("Reindexing block file blk%05u.dat...", (unsigned int)iFile);
NLogFormat("Reindexing block file blk%05u.dat...", (unsigned int)iFile);
LoadExternalBlockFile(Params(), file, &pos);
iFile++;
}
cIndexManager.SetReIndexing(false);
bReIndex = false;
ILogFormat("Reindexing finished");
NLogFormat("Reindexing finished");
}

if (cIndexManager.NeedInitGenesisBlock(Params()))
Expand All @@ -2220,12 +2220,12 @@ void CChainComponent::ThreadImport()
if (file)
{
fs::path pathBootstrapOld = GetDataDir() / "bootstrap.dat.old";
ILogFormat("Importing bootstrap.dat...");
NLogFormat("Importing bootstrap.dat...");
LoadExternalBlockFile(Params(), file, nullptr);
RenameOver(pathBootstrap, pathBootstrapOld);
} else
{
ILogFormat("Warning: Could not open bootstrap file %s", pathBootstrap.string());
NLogFormat("Warning: Could not open bootstrap file %s", pathBootstrap.string());
}
}

Expand All @@ -2234,7 +2234,7 @@ void CChainComponent::ThreadImport()
FILE *file = fsbridge::fopen(strFile, "rb");
if (file)
{
ILogFormat("Importing blocks file %s...", strFile);
NLogFormat("Importing blocks file %s...", strFile);
LoadExternalBlockFile(Params(), file, nullptr);
} else
{
Expand All @@ -2252,7 +2252,7 @@ void CChainComponent::ThreadImport()

if (Args().GetArg<bool>("-stopafterblockimport", false))
{
ILogFormat("Stopping after block import");
NLogFormat("Stopping after block import");
return;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/contract-api/sbtcstate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ SbtcState::execute(EnvInfo const &_envInfo, SealEngineFace const &_sealEngine, S
printfErrorLog(dev::eth::toTransactionException(_e));
res.excepted = dev::eth::toTransactionException(_e);
res.gasUsed = _t.gas();
const Consensus::Params &consensusParams = Params().GetConsensus();
// const Consensus::Params &consensusParams = Params().GetConsensus();
//sbtc-vm force to clear
// if(chainActive.Height() < consensusParams.nFixUTXOCacheHFHeight && _p != Permanence::Reverted){
// deleteAccounts(_sealEngine.deleteAddresses);
Expand Down

0 comments on commit 1ba13f9

Please sign in to comment.