snark/block_verify_effectful/
snark_block_verify_effects.rs

1use redux::ActionMeta;
2
3use super::{SnarkBlockVerifyEffectfulAction, SnarkBlockVerifyService};
4
5impl SnarkBlockVerifyEffectfulAction {
6    pub fn effects<Store, S>(self, _: &ActionMeta, store: &mut Store)
7    where
8        Store: crate::SnarkStore<S>,
9        Store::Service: SnarkBlockVerifyService,
10    {
11        match self {
12            Self::Init {
13                req_id,
14                block,
15                verifier_index,
16                verifier_srs,
17            } => {
18                store
19                    .service()
20                    .verify_init(req_id, verifier_index, verifier_srs, block);
21            }
22        }
23    }
24}