diff options
| author | fanquake <[email protected]> | 2019-10-12 12:49:29 -0400 |
|---|---|---|
| committer | fanquake <[email protected]> | 2019-10-24 16:01:43 -0400 |
| commit | 3548e4aac72e9148d41b440052a89d89328f7661 (patch) | |
| tree | 23c26a5a60cd802e1fdd92dc2349331ad9e08a0d /src/qt/walletmodeltransaction.cpp | |
| parent | docs: remove protobuf from docs (diff) | |
| download | discoin-3548e4aac72e9148d41b440052a89d89328f7661.tar.xz discoin-3548e4aac72e9148d41b440052a89d89328f7661.zip | |
Remove BIP70 Support
Diffstat (limited to 'src/qt/walletmodeltransaction.cpp')
| -rw-r--r-- | src/qt/walletmodeltransaction.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/qt/walletmodeltransaction.cpp b/src/qt/walletmodeltransaction.cpp index d00ccf70d..eba95bd27 100644 --- a/src/qt/walletmodeltransaction.cpp +++ b/src/qt/walletmodeltransaction.cpp @@ -48,25 +48,6 @@ void WalletModelTransaction::reassignAmounts(int nChangePosRet) for (QList<SendCoinsRecipient>::iterator it = recipients.begin(); it != recipients.end(); ++it) { SendCoinsRecipient& rcp = (*it); - -#ifdef ENABLE_BIP70 - if (rcp.paymentRequest.IsInitialized()) - { - CAmount subtotal = 0; - const payments::PaymentDetails& details = rcp.paymentRequest.getDetails(); - for (int j = 0; j < details.outputs_size(); j++) - { - const payments::Output& out = details.outputs(j); - if (out.amount() <= 0) continue; - if (i == nChangePosRet) - i++; - subtotal += walletTransaction->vout[i].nValue; - i++; - } - rcp.amount = subtotal; - } - else // normal recipient (no payment request) -#endif { if (i == nChangePosRet) i++; |