MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / TxLessThan

Class TxLessThan

src/qt/transactiontablemodel.cpp:45–59  ·  view source on GitHub ↗

Comparison operator for sort/binary search of model tx list

Source from the content-addressed store, hash-verified

43
44// Comparison operator for sort/binary search of model tx list
45struct 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
62struct TransactionNotification

Callers 1

updateWalletMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected