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

Function operator==

src/test/fuzz/coins_view.cpp:37–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35const Coin EMPTY_COIN{};
36
37bool operator==(const Coin& a, const Coin& b)
38{
39 if (a.IsSpent() && b.IsSpent()) return true;
40 return a.fCoinBase == b.fCoinBase && a.nHeight == b.nHeight && a.out == b.out;
41}
42} // namespace
43
44void initialize_coins_view()

Callers

nothing calls this directly

Calls 1

IsSpentMethod · 0.45

Tested by

no test coverage detected