* Computes SHA256 hash of ASMap data for versioning and consistency checks. */
| 344 | * Computes SHA256 hash of ASMap data for versioning and consistency checks. |
| 345 | */ |
| 346 | uint256 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 | } |
no test coverage detected