Changeset View
Changeset View
Standalone View
Standalone View
src/qt/guiutil.cpp
Show First 20 Lines • Show All 297 Lines • ▼ Show 20 Lines | if (!info.message.isEmpty()) { | ||||
ret += | ret += | ||||
QString("%1message=%2").arg(paramCount == 0 ? "?" : "&").arg(msg); | QString("%1message=%2").arg(paramCount == 0 ? "?" : "&").arg(msg); | ||||
paramCount++; | paramCount++; | ||||
} | } | ||||
return ret; | return ret; | ||||
} | } | ||||
bool isDust(const QString &address, const Amount amount) { | bool isDust(const QString &address, const Amount amount, | ||||
CTxDestination dest = DecodeDestination(address.toStdString()); | const CChainParams &chainParams) { | ||||
CTxDestination dest = DecodeDestination(address.toStdString(), chainParams); | |||||
CScript script = GetScriptForDestination(dest); | CScript script = GetScriptForDestination(dest); | ||||
CTxOut txOut(amount, script); | CTxOut txOut(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); | ||||
▲ Show 20 Lines • Show All 725 Lines • Show Last 20 Lines |