Skip to content

Commit

Permalink
Revert "Sort recipients in SendCoins dialog via BIP69 rule (#2546)" (#…
Browse files Browse the repository at this point in the history
…2549)

This reverts commit 18cd596.
  • Loading branch information
UdjinM6 authored and codablock committed Dec 13, 2018
1 parent ca0aec2 commit 1a7c29b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
5 changes: 0 additions & 5 deletions src/qt/sendcoinsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,6 @@ void SendCoinsDialog::on_sendButton_clicked()
return;
}

// apply BIP69
if (bBIP69Enabled) {
std::sort(recipients.begin(), recipients.end(), CompareSendCoinsRecipientBIP69());
}

QString strFunds = tr("using") + " <b>" + tr("anonymous funds") + "</b>";
QString strFee = "";
recipients[0].inputType = ONLY_DENOMINATED;
Expand Down
9 changes: 0 additions & 9 deletions src/qt/walletmodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,6 @@ class SendCoinsRecipient
}
};

// same as CompareOutputBIP69 in primitives/transaction.h
struct CompareSendCoinsRecipientBIP69
{
inline bool operator()(const SendCoinsRecipient& a, const SendCoinsRecipient& b) const
{
return a.amount < b.amount || (a.amount == b.amount && a.address < b.address);
}
};

/** Interface to Bitcoin wallet from Qt view code. */
class WalletModel : public QObject
{
Expand Down

0 comments on commit 1a7c29b

Please sign in to comment.