Skip to content

Commit 2a24fe1

Browse files
committed
Snark Worker: Backport change on RPCs from develop
1 parent 60f7e0e commit 2a24fe1

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

src/lib/snark_worker/intf.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ end
6060

6161
module type Rpcs_versioned_S = sig
6262
module Get_work : sig
63-
module V2 : sig
63+
module V3 : sig
6464
type query = unit [@@deriving bin_io]
6565

6666
type response =
@@ -71,7 +71,7 @@ module type Rpcs_versioned_S = sig
7171
val rpc : (query, response) Rpc.Rpc.t
7272
end
7373

74-
module Latest = V2
74+
module Latest = V3
7575
end
7676

7777
module Submit_work : sig
@@ -87,7 +87,7 @@ module type Rpcs_versioned_S = sig
8787
end
8888

8989
module Failed_to_generate_snark : sig
90-
module V2 : sig
90+
module V3 : sig
9191
type query =
9292
Error.t
9393
* Selector.Spec.Stable.Latest.t
@@ -99,6 +99,6 @@ module type Rpcs_versioned_S = sig
9999
val rpc : (query, response) Rpc.Rpc.t
100100
end
101101

102-
module Latest = V2
102+
module Latest = V3
103103
end
104104
end

src/lib/snark_worker/rpc_failed_to_generate_snark.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ include Versioned_rpc.Both_convert.Plain.Make (Master)
2727

2828
[%%versioned_rpc
2929
module Stable = struct
30-
module V2 = struct
30+
module V3 = struct
3131
module T = struct
3232
type query =
3333
Mina_stdlib.Bounded_types.Wrapped_error.Stable.V1.t
34-
* Selector.Spec.Stable.V1.t
34+
* Selector.Spec.Stable.V2.t
3535
* Signature_lib.Public_key.Compressed.Stable.V1.t
3636

3737
type response = unit
@@ -49,5 +49,5 @@ module Stable = struct
4949
include Register (T)
5050
end
5151

52-
module Latest = V2
52+
module Latest = V3
5353
end]

src/lib/snark_worker/rpc_get_work.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ include Versioned_rpc.Both_convert.Plain.Make (Master)
2727

2828
[%%versioned_rpc
2929
module Stable = struct
30-
module V2 = struct
30+
module V3 = struct
3131
module T = struct
3232
type query = unit
3333

3434
type response =
35-
( Selector.Spec.Stable.V1.t
35+
( Selector.Spec.Stable.V2.t
3636
* Signature_lib.Public_key.Compressed.Stable.V1.t )
3737
option
3838

@@ -49,5 +49,5 @@ module Stable = struct
4949
include Register (T)
5050
end
5151

52-
module Latest = V2
52+
module Latest = V3
5353
end]

src/lib/snark_worker/rpc_submit_work.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ include Versioned_rpc.Both_convert.Plain.Make (Master)
2626
module Stable = struct
2727
module V2 = struct
2828
module T = struct
29-
type query = Selector.Result.Stable.V1.t
29+
type query = Selector.Result.Stable.V2.t
3030

3131
type response = unit
3232

0 commit comments

Comments
 (0)