File tree 3 files changed +4
-15
lines changed
3 files changed +4
-15
lines changed Original file line number Diff line number Diff line change 45
45
error_json
46
46
mina_node_config.unconfigurable_constants
47
47
mina_state
48
+ mina_stdlib
48
49
transaction_protocol_state
49
50
ppx_version.runtime)
50
51
(preprocess
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ let dispatch rpc shutdown_on_disconnect query address =
47
47
let emit_proof_metrics
48
48
(metrics :
49
49
( Ledger_proof.Stable.Latest.t
50
- * Time_span_with_json .t
50
+ * Mina_stdlib.Time.Span .t
51
51
* [ `Merge | `Transition ] )
52
52
One_or_two.t ) txns logger =
53
53
One_or_two. iter (One_or_two. zip_exn metrics txns)
Original file line number Diff line number Diff line change 1
1
open Core
2
2
3
- module Time_span_with_json = struct
4
- type t = Time.Span .t
5
-
6
- let to_yojson total = `String (Time.Span. to_string_hum total)
7
-
8
- let of_yojson = function
9
- | `String time ->
10
- Ok (Time.Span. of_string time)
11
- | _ ->
12
- Error " Snark_worker.Functor: Could not parse timespan"
13
- end
14
-
15
3
(* FIX: register_event fails when adding base types to the constructors*)
16
4
module String_with_json = struct
17
5
type t = string
@@ -38,12 +26,12 @@ module Int_with_json = struct
38
26
end
39
27
40
28
type Structured_log_events.t + =
41
- | Merge_snark_generated of { time : Time_span_with_json .t }
29
+ | Merge_snark_generated of { time : Mina_stdlib.Time.Span .t }
42
30
[@@ deriving register_event { msg = " Merge SNARK generated in $time" }]
43
31
44
32
type Structured_log_events.t + =
45
33
| Base_snark_generated of
46
- { time : Time_span_with_json .t
34
+ { time : Mina_stdlib.Time.Span .t
47
35
; transaction_type : String_with_json .t
48
36
; zkapp_command_count : Int_with_json .t
49
37
; proof_zkapp_command_count : Int_with_json .t
You can’t perform that action at this time.
0 commit comments