Simplify equalHashes

Now that all hashes that we deal with are stored in the same pool, we can simply
compare their addresses.
This commit is contained in:
Stefan Haller 2025-04-19 18:16:59 +02:00
parent 13c21365c0
commit 18e5b0a650

View file

@ -380,7 +380,6 @@ func equalHashes(a, b *string) bool {
return false return false
} }
length := min(len(*a), len(*b)) // We know that all hashes are stored in the pool, so we can compare their addresses
// parent hashes are only stored up to 20 characters for some reason so we'll truncate to that for comparison return a == b
return (*a)[:length] == (*b)[:length]
} }