MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / isCollision

Function isCollision

src/xthin.cpp:14–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12#include <algorithm>
13
14bool isCollision(const std::vector<uint64_t>& txHashes, const uint64_t& hash) {
15 return std::find(txHashes.begin(), txHashes.end(), hash)
16 != txHashes.end();
17}
18
19XThinBlock::XThinBlock() { }
20

Callers 2

XThinBlockMethod · 0.85
selfValidateMethod · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected