File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
node_types/prover/src/prover Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -69,13 +69,16 @@ async fn main() -> std::io::Result<()> {
69
69
verifying_key. to_bytes( ) . to_base64( )
70
70
) ;
71
71
72
+ // When SP1_PROVER is set to mock, disable recursive proofs
73
+ let recursive_proofs = std:: env:: var ( "SP1_PROVER" ) . map_or ( true , |val| val != "mock" ) ;
72
74
let prover_cfg = prism_prover:: Config {
73
75
prover : true ,
74
76
batcher : true ,
75
77
webserver : config. webserver . unwrap_or_default ( ) ,
76
78
signing_key,
77
79
verifying_key,
78
80
start_height,
81
+ recursive_proofs,
79
82
} ;
80
83
81
84
Arc :: new ( Prover :: new ( db, da, & prover_cfg) . map_err ( |e| {
@@ -102,13 +105,16 @@ async fn main() -> std::io::Result<()> {
102
105
. verifying_key
103
106
. ok_or_else ( || Error :: new ( ErrorKind :: NotFound , "prover verifying key not found" ) ) ?;
104
107
108
+ // When SP1_PROVER is set to mock, disable recursive proofs
109
+ let recursive_proofs = std:: env:: var ( "SP1_PROVER" ) . map_or ( true , |val| val != "mock" ) ;
105
110
let prover_cfg = prism_prover:: Config {
106
111
prover : false ,
107
112
batcher : true ,
108
113
webserver : config. webserver . unwrap_or_default ( ) ,
109
114
signing_key,
110
115
verifying_key,
111
116
start_height,
117
+ recursive_proofs,
112
118
} ;
113
119
114
120
Arc :: new ( Prover :: new ( db, da, & prover_cfg) . map_err ( |e| {
Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ pub struct Config {
66
66
/// DA layer height the prover should start syncing transactions from.
67
67
pub start_height : u64 ,
68
68
69
+ /// Whether recursive proofs should be enabled - defaults to true, unless SP1_PROVER env var is set to "mock"
69
70
pub recursive_proofs : bool ,
70
71
}
71
72
@@ -80,7 +81,7 @@ impl Default for Config {
80
81
signing_key : signing_key. clone ( ) ,
81
82
verifying_key : signing_key. verifying_key ( ) ,
82
83
start_height : 1 ,
83
- recursive_proofs : false ,
84
+ recursive_proofs : true ,
84
85
}
85
86
}
86
87
}
@@ -105,7 +106,7 @@ impl Config {
105
106
signing_key : signing_key. clone ( ) ,
106
107
verifying_key : signing_key. verifying_key ( ) ,
107
108
start_height : 1 ,
108
- recursive_proofs : false ,
109
+ recursive_proofs : true ,
109
110
} )
110
111
}
111
112
}
You can’t perform that action at this time.
0 commit comments