diff options
Diffstat (limited to 'src/primitives')
-rw-r--r-- | src/primitives/transaction.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/primitives/transaction.h b/src/primitives/transaction.h index 9f7d6f3943..149816406a 100644 --- a/src/primitives/transaction.h +++ b/src/primitives/transaction.h @@ -34,7 +34,8 @@ public: friend bool operator<(const COutPoint& a, const COutPoint& b) { - return (a.hash < b.hash || (a.hash == b.hash && a.n < b.n)); + int cmp = a.hash.Compare(b.hash); + return cmp < 0 || (cmp == 0 && a.n < b.n); } friend bool operator==(const COutPoint& a, const COutPoint& b) |