Skip to content

Commit c83dc68

Browse files
committed
[runtime_config] Inline explanations on Fork_config.t fields.
1 parent 6aa7a7c commit c83dc68

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/lib/runtime_config/runtime_config.ml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
open Core_kernel
22

33
module Fork_config = struct
4-
(* previous_global_slot here is a global slot since genesis. previous
5-
length is a number of blocks produced since genesis, which might be
6-
smaller than previous_global_slot or equal if a block was produced
7-
in every slot possible, which may or may not be the case. *)
4+
(* Note that previous_length might be smaller than the gernesis_slot
5+
or equal if a block was produced in every slot possible. *)
86
type t =
9-
{ previous_state_hash : string; previous_length : int; genesis_slot : int }
7+
{ previous_state_hash : string
8+
; previous_length : int (* number of blocks produced since genesis *)
9+
; genesis_slot : int (* global slot since genesis *)
10+
}
1011
[@@deriving yojson, bin_io_unversioned]
1112

1213
let gen =

0 commit comments

Comments
 (0)