Comparison operator for sort/binary search of model tx list
| 43 | |
| 44 | // Comparison operator for sort/binary search of model tx list |
| 45 | struct TxLessThan |
| 46 | { |
| 47 | bool operator()(const TransactionRecord &a, const TransactionRecord &b) const |
| 48 | { |
| 49 | return a.hash < b.hash; |
| 50 | } |
| 51 | bool operator()(const TransactionRecord &a, const Txid &b) const |
| 52 | { |
| 53 | return a.hash < b; |
| 54 | } |
| 55 | bool operator()(const Txid &a, const TransactionRecord &b) const |
| 56 | { |
| 57 | return a < b.hash; |
| 58 | } |
| 59 | }; |
| 60 | |
| 61 | // queue notifications to show a non freezing progress dialog e.g. for rescan |
| 62 | struct TransactionNotification |