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

Class TxLessThan

src/qt/transactiontablemodel.cpp:41–55  ·  view source on GitHub ↗

Comparison operator for sort/binary search of model tx list

Source from the content-addressed store, hash-verified

39
40// Comparison operator for sort/binary search of model tx list
41struct 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
58class TransactionTablePriv

Callers 1

updateWalletMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected