本文整理汇总了C++中CBlock::print方法的典型用法代码示例。如果您正苦于以下问题:C++ CBlock::print方法的具体用法?C++ CBlock::print怎么用?C++ CBlock::print使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CBlock
的用法示例。
在下文中一共展示了CBlock::print方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: AppInit2
//.........这里部分代码省略.........
if (GetArg("-debug3", "false")=="true")
{
fDebug3 = true;
LogPrintf("Entering GRC debug mode 3.");
}
if (GetArg("-debug4", "false")=="true")
{
fDebug4 = true;
LogPrintf("Entering RPC time debug mode");
}
fDebug10= (GetArg("-debug10","false")=="true");
#if defined(WIN32)
fDaemon = false;
#else
if(fQtActive)
fDaemon = false;
else
fDaemon = GetBoolArg("-daemon");
#endif
if (fDaemon)
fServer = true;
else
fServer = GetBoolArg("-server");
/* force fServer when running without GUI */
if(!fQtActive)
fServer = true;
fPrintToConsole = GetBoolArg("-printtoconsole");
fPrintToDebugger = GetBoolArg("-printtodebugger");
fLogTimestamps = GetBoolArg("-logtimestamps");
fLogTimestamps = true;
if (mapArgs.count("-timeout"))
{
int nNewTimeout = GetArg("-timeout", 4000);
if (nNewTimeout > 0 && nNewTimeout < 600000)
nConnectTimeout = nNewTimeout;
}
if (mapArgs.count("-paytxfee"))
{
if (!ParseMoney(mapArgs["-paytxfee"], nTransactionFee))
return InitError(strprintf(_("Invalid amount for -paytxfee=<amount>: '%s'"), mapArgs["-paytxfee"]));
if (nTransactionFee > 0.25 * COIN)
InitWarning(_("Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction."));
}
fConfChange = GetBoolArg("-confchange", false);
fEnforceCanonical = GetBoolArg("-enforcecanonical", true);
if (mapArgs.count("-mininput"))
{
if (!ParseMoney(mapArgs["-mininput"], nMinimumInputValue))
return InitError(strprintf(_("Invalid amount for -mininput=<amount>: '%s'"), mapArgs["-mininput"]));
}
// ********************************************************* Step 4: application initialization: dir lock, daemonize, pidfile, debug log
// Sanity check
if (!InitSanityCheck())
return InitError(_("Initialization sanity check failed. Gridcoin is shutting down."));