mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
Remove BIP70 Support
This commit is contained in:
@@ -137,12 +137,6 @@ bool SendCoinsEntry::validate(interfaces::Node& node)
|
||||
// Check input validity
|
||||
bool retval = true;
|
||||
|
||||
#ifdef ENABLE_BIP70
|
||||
// Skip checks for payment request
|
||||
if (recipient.paymentRequest.IsInitialized())
|
||||
return retval;
|
||||
#endif
|
||||
|
||||
if (!model->validateAddress(ui->payTo->text()))
|
||||
{
|
||||
ui->payTo->setValid(false);
|
||||
@@ -172,13 +166,6 @@ bool SendCoinsEntry::validate(interfaces::Node& node)
|
||||
|
||||
SendCoinsRecipient SendCoinsEntry::getValue()
|
||||
{
|
||||
#ifdef ENABLE_BIP70
|
||||
// Payment request
|
||||
if (recipient.paymentRequest.IsInitialized())
|
||||
return recipient;
|
||||
#endif
|
||||
|
||||
// Normal payment
|
||||
recipient.address = ui->payTo->text();
|
||||
recipient.label = ui->addAsLabel->text();
|
||||
recipient.amount = ui->payAmount->value();
|
||||
@@ -203,29 +190,6 @@ QWidget *SendCoinsEntry::setupTabChain(QWidget *prev)
|
||||
void SendCoinsEntry::setValue(const SendCoinsRecipient &value)
|
||||
{
|
||||
recipient = value;
|
||||
|
||||
#ifdef ENABLE_BIP70
|
||||
if (recipient.paymentRequest.IsInitialized()) // payment request
|
||||
{
|
||||
if (recipient.authenticatedMerchant.isEmpty()) // unauthenticated
|
||||
{
|
||||
ui->payTo_is->setText(recipient.address);
|
||||
ui->memoTextLabel_is->setText(recipient.message);
|
||||
ui->payAmount_is->setValue(recipient.amount);
|
||||
ui->payAmount_is->setReadOnly(true);
|
||||
setCurrentWidget(ui->SendCoins_UnauthenticatedPaymentRequest);
|
||||
}
|
||||
else // authenticated
|
||||
{
|
||||
ui->payTo_s->setText(recipient.authenticatedMerchant);
|
||||
ui->memoTextLabel_s->setText(recipient.message);
|
||||
ui->payAmount_s->setValue(recipient.amount);
|
||||
ui->payAmount_s->setReadOnly(true);
|
||||
setCurrentWidget(ui->SendCoins_AuthenticatedPaymentRequest);
|
||||
}
|
||||
}
|
||||
else // normal payment
|
||||
#endif
|
||||
{
|
||||
// message
|
||||
ui->messageTextLabel->setText(recipient.message);
|
||||
|
||||
Reference in New Issue
Block a user