Add a comment about sha256 from BLST strangely requiring LTO
This commit is contained in:
parent
ce0f7af862
commit
bada5f1b69
|
@ -72,6 +72,8 @@ when BLS_BACKEND == BLST:
|
||||||
func update*(ctx: var sha256; digest: Eth2Digest) =
|
func update*(ctx: var sha256; digest: Eth2Digest) =
|
||||||
ctx.update digest.data
|
ctx.update digest.data
|
||||||
|
|
||||||
|
# TODO: not sure why but the "init", "update", "final" from BLST
|
||||||
|
# seem to require LTO, even though proper indirection was added in the wrapper
|
||||||
template withEth2Hash*(body: untyped): Eth2Digest =
|
template withEth2Hash*(body: untyped): Eth2Digest =
|
||||||
## This little helper will init the hash function and return the sliced
|
## This little helper will init the hash function and return the sliced
|
||||||
## hash:
|
## hash:
|
||||||
|
|
Loading…
Reference in New Issue