mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-17 18:40:09 +00:00
Merge pull request #3020 from Diapolo/LogPrint_fixes
fix some printf -> LogPrintf leftovers
This commit is contained in:
commit
f676fb91f3
@ -1214,7 +1214,7 @@ public:
|
|||||||
@see CTransaction::FetchInputs
|
@see CTransaction::FetchInputs
|
||||||
*/
|
*/
|
||||||
int64 GetValueIn(const CTransaction& tx);
|
int64 GetValueIn(const CTransaction& tx);
|
||||||
|
|
||||||
// Check whether all prevouts of the transaction are present in the UTXO set represented by this view
|
// Check whether all prevouts of the transaction are present in the UTXO set represented by this view
|
||||||
bool HaveInputs(const CTransaction& tx);
|
bool HaveInputs(const CTransaction& tx);
|
||||||
|
|
||||||
|
12
src/util.cpp
12
src/util.cpp
@ -198,15 +198,7 @@ uint256 GetRandHash()
|
|||||||
return hash;
|
return hash;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// LogPrintf() has been broken a couple of times now
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//
|
|
||||||
// OutputDebugStringF (aka printf -- there is a #define that we really
|
|
||||||
// should get rid of one day) has been broken a couple of times now
|
|
||||||
// by well-meaning people adding mutexes in the most straightforward way.
|
// by well-meaning people adding mutexes in the most straightforward way.
|
||||||
// It breaks because it may be called by global destructors during shutdown.
|
// It breaks because it may be called by global destructors during shutdown.
|
||||||
// Since the order of destruction of static/global objects is undefined,
|
// Since the order of destruction of static/global objects is undefined,
|
||||||
@ -1065,7 +1057,7 @@ const boost::filesystem::path &GetDataDir(bool fNetSpecific)
|
|||||||
|
|
||||||
fs::path &path = pathCached[nNet];
|
fs::path &path = pathCached[nNet];
|
||||||
|
|
||||||
// This can be called during exceptions by printf, so we cache the
|
// This can be called during exceptions by LogPrintf(), so we cache the
|
||||||
// value so we don't have to do memory allocations after that.
|
// value so we don't have to do memory allocations after that.
|
||||||
if (!path.empty())
|
if (!path.empty())
|
||||||
return path;
|
return path;
|
||||||
|
@ -1145,11 +1145,11 @@ bool CWallet::SelectCoinsMinConf(int64 nTargetValue, int nConfMine, int nConfThe
|
|||||||
nValueRet += vValue[i].first;
|
nValueRet += vValue[i].first;
|
||||||
}
|
}
|
||||||
|
|
||||||
LogPrintf("selectcoins", "SelectCoins() best subset: ");
|
LogPrint("selectcoins", "SelectCoins() best subset: ");
|
||||||
for (unsigned int i = 0; i < vValue.size(); i++)
|
for (unsigned int i = 0; i < vValue.size(); i++)
|
||||||
if (vfBest[i])
|
if (vfBest[i])
|
||||||
LogPrintf("selectcoins", "%s ", FormatMoney(vValue[i].first).c_str());
|
LogPrint("selectcoins", "%s ", FormatMoney(vValue[i].first).c_str());
|
||||||
LogPrintf("selectcoins", "total %s\n", FormatMoney(nBest).c_str());
|
LogPrint("selectcoins", "total %s\n", FormatMoney(nBest).c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user