Comparison operator for sort/binary search of model tx list
| 39 | |
| 40 | // Comparison operator for sort/binary search of model tx list |
| 41 | struct TxLessThan |
| 42 | { |
| 43 | bool operator()(const TransactionRecord &a, const TransactionRecord &b) const |
| 44 | { |
| 45 | return a.hash < b.hash; |
| 46 | } |
| 47 | bool operator()(const TransactionRecord &a, const uint256 &b) const |
| 48 | { |
| 49 | return a.hash < b; |
| 50 | } |
| 51 | bool operator()(const uint256 &a, const TransactionRecord &b) const |
| 52 | { |
| 53 | return a < b.hash; |
| 54 | } |
| 55 | }; |
| 56 | |
| 57 | // Private implementation |
| 58 | class TransactionTablePriv |