MCPcopy Create free account
hub / github.com/ElementsProject/elements / operator==

Function operator==

src/test/coins_tests.cpp:27–33  ·  view source on GitHub ↗

equality test

Source from the content-addressed store, hash-verified

25{
26//! equality test
27bool operator==(const Coin &a, const Coin &b) {
28 // Empty Coin objects are always equal.
29 if (a.IsSpent() && b.IsSpent()) return true;
30 return a.fCoinBase == b.fCoinBase &&
31 a.nHeight == b.nHeight &&
32 a.out == b.out;
33}
34
35class CCoinsViewTest : public CCoinsView
36{

Callers

nothing calls this directly

Calls 1

IsSpentMethod · 0.45

Tested by

no test coverage detected