98
98
; verifier : (Verifier .t [@ sexp.opaque])
99
99
; disk_location : string
100
100
}
101
- [@@ deriving sexp , make ]
101
+ [@@ deriving make ]
102
102
end
103
103
104
104
type transition_frontier_diff =
@@ -113,7 +113,6 @@ struct
113
113
; account_creation_fee : Currency.Fee .t
114
114
; batcher : Batcher.Snark_pool .t
115
115
}
116
- [@@ deriving sexp ]
117
116
118
117
let make_config = Config. make
119
118
@@ -546,7 +545,7 @@ module Diff_versioned = struct
546
545
* Ledger_proof.Stable.V2 .t One_or_two.Stable.V1 .t
547
546
Priced_proof.Stable.V1 .t
548
547
| Empty
549
- [@@ deriving compare , sexp , to_yojson , hash ]
548
+ [@@ deriving compare , to_yojson , hash ]
550
549
551
550
let to_latest = Fn. id
552
551
end
@@ -557,7 +556,7 @@ module Diff_versioned = struct
557
556
Transaction_snark_work.Statement .t
558
557
* Ledger_proof .t One_or_two .t Priced_proof .t
559
558
| Empty
560
- [@@ deriving compare , sexp , to_yojson , hash ]
559
+ [@@ deriving compare , to_yojson , hash ]
561
560
end
562
561
563
562
let % test_module " random set test" =
@@ -688,15 +687,6 @@ let%test_module "random set test" =
688
687
@@ Signature_lib.Public_key.Compressed. equal mal_pk fee.prover ) )
689
688
in
690
689
Quickcheck. test ~trials: 5
691
- ~sexp_of:
692
- [% sexp_of:
693
- (Mock_snark_pool.Resource_pool. t * Mocks.Transition_frontier. t)
694
- Deferred. t
695
- * ( Transaction_snark_work.Statement. t
696
- * Ledger_proof. t One_or_two. t
697
- * Fee_with_prover. t
698
- * Signature_lib.Public_key.Compressed. t )
699
- list ]
700
690
(Quickcheck.Generator. tuple2 (gen () ) invalid_work_gen)
701
691
~f: (fun (t , invalid_work_lst ) ->
702
692
Async.Thread_safe. block_on_async_exn (fun () ->
@@ -731,13 +721,6 @@ let%test_module "random set test" =
731
721
the snark pool, the fee of the work is at most the minimum \
732
722
of those fees" =
733
723
Quickcheck. test ~trials: 5
734
- ~sexp_of:
735
- [% sexp_of:
736
- (Mock_snark_pool.Resource_pool. t * Mocks.Transition_frontier. t)
737
- Deferred. t
738
- * Mocks.Transaction_snark_work.Statement. t
739
- * Fee_with_prover. t
740
- * Fee_with_prover. t]
741
724
(Async.Quickcheck.Generator. tuple4 (gen () )
742
725
Mocks.Transaction_snark_work.Statement. gen Fee_with_prover. gen
743
726
Fee_with_prover. gen )
@@ -761,13 +744,6 @@ let%test_module "random set test" =
761
744
proof of the same work only if it's fee is smaller than the \
762
745
existing priced proof" =
763
746
Quickcheck. test ~trials: 5
764
- ~sexp_of:
765
- [% sexp_of:
766
- (Mock_snark_pool.Resource_pool. t * Mocks.Transition_frontier. t)
767
- Deferred. t
768
- * Mocks.Transaction_snark_work.Statement. t
769
- * Fee_with_prover. t
770
- * Fee_with_prover. t]
771
747
(Quickcheck.Generator. tuple4 (gen () )
772
748
Mocks.Transaction_snark_work.Statement. gen Fee_with_prover. gen
773
749
Fee_with_prover. gen )
@@ -955,8 +931,11 @@ let%test_module "random set test" =
955
931
in
956
932
let check_work ~expected ~got =
957
933
let sort = List. sort ~compare: compare_work in
958
- [% test_eq: Mock_snark_pool.Resource_pool.Diff. t list ] (sort got)
959
- (sort expected)
934
+ if
935
+ [% compare: Mock_snark_pool.Resource_pool.Diff. t list ] (sort got)
936
+ (sort expected)
937
+ <> 0
938
+ then failwith " diffs don't match"
960
939
in
961
940
Async.Thread_safe. block_on_async_exn (fun () ->
962
941
let open Deferred.Let_syntax in
0 commit comments