Don't start prover for block w/o witness
@@ -65,6 +65,8 @@ impl<'a> ProverSchema<'a> {
WHERE action_type = 'COMMIT' \
AND block_number > \
(SELECT COALESCE(max(block_number),0) FROM operations WHERE action_type = 'VERIFY') \
+ AND EXISTS \
+ (SELECT * FROM block_witness WHERE block = o.block_number) \
AND NOT EXISTS \
(SELECT * FROM proofs WHERE block_number = o.block_number);";
