diff --git a/src/bin_dal_node/daemon.ml b/src/bin_dal_node/daemon.ml index 63b1af3c565aca89937dd3bd2967a66603e1ffc5..3ad47b581d8a06ad319ee812852d738cbf165015 100644 --- a/src/bin_dal_node/daemon.ml +++ b/src/bin_dal_node/daemon.ml @@ -916,6 +916,15 @@ let run ~data_dir ~configuration_override = let* cryptobox, shards_proofs_precomputation = init_cryptobox config proto_parameters in + let* amplificator = + (* TODO: https://gitlab.com/tezos/tezos/-/issues/7452 + The amplificator also initializes the crypto. This could be avoided. + Also, is this the right moment to start the amplificator? *) + if Profile_manager.is_prover_profile profile_ctxt then + let* amplificator = Amplificator.make () in + return_some amplificator + else return_none + in (* Set value size hooks. *) Value_size_hooks.set_share_size (Cryptobox.Internal_for_tests.encoded_share_size cryptobox) ; @@ -948,12 +957,6 @@ let run ~data_dir ~configuration_override = ?last_notified_level:last_processed_level cctxt in - let* amplificator = - if Profile_manager.is_prover_profile profile_ctxt then - let* amplificator = Amplificator.make () in - return_some amplificator - else return_none - in let* () = match amplificator with | None -> return_unit