Commit 5260396 1 parent 9b0229b commit 5260396 Copy full SHA for 5260396
File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -193,11 +193,19 @@ fn process_l1_checkpoint(
193
193
let ckpt = signed_ckpt. checkpoint ( ) ; // inner data
194
194
195
195
let receipt = ckpt. construct_receipt ( ) ;
196
- if !params. proof_publish_mode . allow_empty ( ) {
196
+
197
+ if receipt. proof ( ) . is_empty ( ) {
198
+ // If the proof is empty but empty proofs are not allowed, this will fail.
199
+ assert ! (
200
+ params. proof_publish_mode. allow_empty( ) ,
201
+ "empty proof is not allowed"
202
+ ) ;
203
+ } else {
204
+ // Otherwise, verify the non-empty proof.
197
205
assert ! (
198
206
verify_rollup_groth16_proof_receipt( & receipt, & params. rollup_vk) . is_ok( ) ,
199
207
"posted checkpoint proof verification failed"
200
- )
208
+ ) ;
201
209
}
202
210
203
211
// Copy the epoch commitment and make it finalized.
You can’t perform that action at this time.
0 commit comments