Changeset View
Changeset View
Standalone View
Standalone View
src/qt/paymentserver.cpp
Show First 20 Lines • Show All 543 Lines • ▼ Show 20 Lines | bool PaymentServer::processPaymentRequest(const PaymentRequestPlus &request, | ||||
for (const std::pair<CScript, CAmount> &sendingTo : sendingTos) { | for (const std::pair<CScript, CAmount> &sendingTo : sendingTos) { | ||||
// Extract and check destination addresses | // Extract and check destination addresses | ||||
CTxDestination dest; | CTxDestination dest; | ||||
if (ExtractDestination(sendingTo.first, dest)) { | if (ExtractDestination(sendingTo.first, dest)) { | ||||
// Append destination address | // Append destination address | ||||
addresses.append(QString::fromStdString(EncodeDestination(dest))); | addresses.append(QString::fromStdString(EncodeDestination(dest))); | ||||
} else if (!recipient.authenticatedMerchant.isEmpty()) { | } else if (!recipient.authenticatedMerchant.isEmpty()) { | ||||
// Unauthenticated payment requests to custom bitcoin addresses are | // Unauthenticated payment requests to custom bitcoin addresses are | ||||
// not supported (there is no good way to tell the user where they | // not supported | ||||
// are paying in a way they'd have a chance of understanding). | // (there is no good way to tell the user where they are paying in a | ||||
// way they'd | |||||
// have a chance of understanding). | |||||
Q_EMIT message(tr("Payment request rejected"), | Q_EMIT message(tr("Payment request rejected"), | ||||
tr("Unverified payment requests to custom payment " | tr("Unverified payment requests to custom payment " | ||||
"scripts are unsupported."), | "scripts are unsupported."), | ||||
CClientUIInterface::MSG_ERROR); | CClientUIInterface::MSG_ERROR); | ||||
return false; | return false; | ||||
} | } | ||||
// Bitcoin amounts are stored as (optional) uint64 in the protobuf | // Bitcoin amounts are stored as (optional) uint64 in the protobuf | ||||
▲ Show 20 Lines • Show All 255 Lines • Show Last 20 Lines |