Changeset View
Changeset View
Standalone View
Standalone View
src/qt/guiutil.cpp
Show First 20 Lines • Show All 284 Lines • ▼ Show 20 Lines | QString formatBitcoinURI(const Config &config, const SendCoinsRecipient &info) { | ||||
return ret; | return ret; | ||||
} | } | ||||
bool isDust(interfaces::Node &node, const QString &address, const Amount amount, | bool isDust(interfaces::Node &node, const QString &address, const Amount amount, | ||||
const CChainParams &chainParams) { | const CChainParams &chainParams) { | ||||
CTxDestination dest = DecodeDestination(address.toStdString(), 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(node.getDustRelayFee()); | return IsDust(txOut, node.getDustRelayFee()); | ||||
} | } | ||||
QString HtmlEscape(const QString &str, bool fMultiLine) { | QString HtmlEscape(const QString &str, bool fMultiLine) { | ||||
QString escaped = str.toHtmlEscaped(); | QString escaped = str.toHtmlEscaped(); | ||||
if (fMultiLine) { | if (fMultiLine) { | ||||
escaped = escaped.replace("\n", "<br>\n"); | escaped = escaped.replace("\n", "<br>\n"); | ||||
} | } | ||||
return escaped; | return escaped; | ||||
▲ Show 20 Lines • Show All 724 Lines • Show Last 20 Lines |