Adding layer integrity check to getCanonicalBlock2().
Authored by: nerius 2023-11-20
Parent: [r1769]
Child: [r1771]