mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-25 15:05:55 +01:00
Use __func__ to get function name for output printing
This commit is contained in:
@@ -100,7 +100,7 @@ CAmount CTransaction::GetValueOut() const
|
||||
{
|
||||
nValueOut += it->nValue;
|
||||
if (!MoneyRange(it->nValue) || !MoneyRange(nValueOut))
|
||||
throw std::runtime_error("CTransaction::GetValueOut(): value out of range");
|
||||
throw std::runtime_error(std::string(__func__) + ": value out of range");
|
||||
}
|
||||
return nValueOut;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user