Advertisement
Guest User

Untitled

a guest
Jan 21st, 2018
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. {
  2. return a.address < b.address;
  3. }
  4. bool operator()(const AddressTableEntry &a, const QString &b) const
  5. {
  6. return a.address < b;
  7. }
  8. bool operator()(const QString &a, const AddressTableEntry &b) const
  9. {
  10. return a < b.address;
  11. }
  12. };
  13.  
  14. /* Determine address type from address purpose */
  15. static AddressTableEntry::Type translateTransactionType(const QString &strPurpose, bool isMine)
  16. {
  17. AddressTableEntry::Type addressType = AddressTableEntry::Hidden;
  18. // "refund" addresses aren't shown, and change addresses aren't in mapAddressBook at all.
  19. if (strPurpose == "send")
  20. addressType = AddressTableEntry::Sending;
  21. else if (strPurpose == "receive")
  22. addressType = AddressTableEntry
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement