mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Emergency fix. boost::format doesn't have the thread safety we thought.
This commit is contained in:
@@ -1154,19 +1154,19 @@ std::string STAmount::getFullText() const
|
||||
static boost::format normal("%s/%s/%s");
|
||||
if (mIsNative)
|
||||
{
|
||||
return str(nativeFormat % getText());
|
||||
return str(boost::format(nativeFormat) % getText());
|
||||
}
|
||||
else if (!mIssuer)
|
||||
{
|
||||
return str(noIssuer % getText() % getHumanCurrency());
|
||||
return str(boost::format(noIssuer) % getText() % getHumanCurrency());
|
||||
}
|
||||
else if (mIssuer == ACCOUNT_ONE)
|
||||
{
|
||||
return str(issuerOne % getText() % getHumanCurrency());
|
||||
return str(boost::format(issuerOne) % getText() % getHumanCurrency());
|
||||
}
|
||||
else
|
||||
{
|
||||
return str(normal
|
||||
return str(boost::format(normal)
|
||||
% getText()
|
||||
% getHumanCurrency()
|
||||
% RippleAddress::createHumanAccountID(mIssuer));
|
||||
|
||||
Reference in New Issue
Block a user