From bada5f1b6963ae3a39966a60f56548226c560e71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mamy=20Andr=C3=A9-Ratsimbazafy?= Date: Wed, 23 Dec 2020 10:36:43 +0100 Subject: [PATCH] Add a comment about sha256 from BLST strangely requiring LTO --- beacon_chain/spec/digest.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/beacon_chain/spec/digest.nim b/beacon_chain/spec/digest.nim index 81b664572..63615882c 100644 --- a/beacon_chain/spec/digest.nim +++ b/beacon_chain/spec/digest.nim @@ -72,6 +72,8 @@ when BLS_BACKEND == BLST: func update*(ctx: var sha256; digest: Eth2Digest) = 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 = ## This little helper will init the hash function and return the sliced ## hash: