Changeset View
Changeset View
Standalone View
Standalone View
src/qt/guiutil.cpp
Show First 20 Lines • Show All 254 Lines • ▼ Show 20 Lines | QString formatBitcoinURI(const SendCoinsRecipient &info) { | ||||
} | } | ||||
return ret; | return ret; | ||||
} | } | ||||
bool isDust(const QString &address, const CAmount &amount) { | bool isDust(const QString &address, const CAmount &amount) { | ||||
CTxDestination dest = DecodeDestination(address.toStdString()); | CTxDestination dest = DecodeDestination(address.toStdString()); | ||||
CScript script = GetScriptForDestination(dest); | CScript script = GetScriptForDestination(dest); | ||||
CTxOut txOut(amount, script); | CTxOut txOut(Amount(amount), script); | ||||
return txOut.IsDust(dustRelayFee); | return txOut.IsDust(dustRelayFee); | ||||
} | } | ||||
QString HtmlEscape(const QString &str, bool fMultiLine) { | QString HtmlEscape(const QString &str, bool fMultiLine) { | ||||
#if QT_VERSION < 0x050000 | #if QT_VERSION < 0x050000 | ||||
QString escaped = Qt::escape(str); | QString escaped = Qt::escape(str); | ||||
#else | #else | ||||
QString escaped = str.toHtmlEscaped(); | QString escaped = str.toHtmlEscaped(); | ||||
▲ Show 20 Lines • Show All 725 Lines • Show Last 20 Lines |