Skip to content

Commit

Permalink
Merge branch 'develop' into feature/telemetry-data-with-no-frontier
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmr1993 authored Nov 24, 2020
2 parents b9dcacd + 28658cc commit 99e2592
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/lib/genesis_ledger_helper/genesis_ledger_helper.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1219,8 +1219,20 @@ let load_config_file filename =

let init_from_config_file ?(genesis_dir = Cache_dir.autogen_path) ~logger
~may_generate ~proof_level (config : Runtime_config.t) =
[%log info] "Initializing with runtime configuration $config"
~metadata:[("config", Runtime_config.to_yojson config)] ;
let ledger_name_json =
match
let open Option.Let_syntax in
let%bind ledger = config.ledger in
ledger.name
with
| Some name ->
`String name
| None ->
`Null
in
[%log info] "Initializing with runtime configuration. Ledger name: $name"
~metadata:
[("name", ledger_name_json); ("config", Runtime_config.to_yojson config)] ;
let open Deferred.Or_error.Let_syntax in
let genesis_constants = Genesis_constants.compiled in
let proof_level =
Expand Down

0 comments on commit 99e2592

Please sign in to comment.