MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / AsmapVersion

Function AsmapVersion

src/util/asmap.cpp:346–353  ·  view source on GitHub ↗

* Computes SHA256 hash of ASMap data for versioning and consistency checks. */

Source from the content-addressed store, hash-verified

344 * Computes SHA256 hash of ASMap data for versioning and consistency checks.
345 */
346uint256 AsmapVersion(const std::span<const std::byte> data)
347{
348 if (data.empty()) return {};
349
350 HashWriter asmap_hasher;
351 asmap_hasher << data;
352 return asmap_hasher.GetHash();
353}

Callers 2

GetAsmapVersionMethod · 0.85
AppInitMainFunction · 0.85

Calls 2

emptyMethod · 0.45
GetHashMethod · 0.45

Tested by

no test coverage detected