@@ -7,10 +7,7 @@ use crate::rpc::{
7
7
RpcP2pConnectionIncomingSuccessAction , RpcP2pConnectionOutgoingErrorAction ,
8
8
RpcP2pConnectionOutgoingSuccessAction ,
9
9
} ;
10
- use crate :: snark_pool:: candidate:: {
11
- SnarkPoolCandidateInfoReceivedAction , SnarkPoolCandidatePeerPruneAction ,
12
- SnarkPoolCandidateWorkReceivedAction ,
13
- } ;
10
+ use crate :: snark_pool:: candidate:: SnarkPoolCandidateAction ;
14
11
use crate :: snark_pool:: SnarkPoolJobCommitmentAddAction ;
15
12
use crate :: transition_frontier:: sync:: ledger:: snarked:: {
16
13
PeerLedgerQueryError , PeerLedgerQueryResponse ,
@@ -262,7 +259,7 @@ pub fn p2p_effects<S: Service>(store: &mut Store<S>, action: P2pActionWithMeta)
262
259
store. dispatch ( action) ;
263
260
}
264
261
265
- store. dispatch ( SnarkPoolCandidatePeerPruneAction {
262
+ store. dispatch ( SnarkPoolCandidateAction :: PeerPrune {
266
263
peer_id : action. peer_id ,
267
264
} ) ;
268
265
}
@@ -356,7 +353,7 @@ pub fn p2p_effects<S: Service>(store: &mut Store<S>, action: P2pActionWithMeta)
356
353
P2pChannelsSnarkAction :: PromiseReceived ( _) => { }
357
354
P2pChannelsSnarkAction :: Received ( action) => {
358
355
action. effects ( & meta, store) ;
359
- store. dispatch ( SnarkPoolCandidateInfoReceivedAction {
356
+ store. dispatch ( SnarkPoolCandidateAction :: InfoReceived {
360
357
peer_id : action. peer_id ,
361
358
info : action. snark ,
362
359
} ) ;
@@ -366,7 +363,7 @@ pub fn p2p_effects<S: Service>(store: &mut Store<S>, action: P2pActionWithMeta)
366
363
action. effects ( & meta, store) ;
367
364
}
368
365
P2pChannelsSnarkAction :: Libp2pReceived ( action) => {
369
- store. dispatch ( SnarkPoolCandidateWorkReceivedAction {
366
+ store. dispatch ( SnarkPoolCandidateAction :: WorkReceived {
370
367
peer_id : action. peer_id ,
371
368
work : action. snark ,
372
369
} ) ;
@@ -541,7 +538,7 @@ pub fn p2p_effects<S: Service>(store: &mut Store<S>, action: P2pActionWithMeta)
541
538
} ) ;
542
539
}
543
540
Some ( P2pRpcResponse :: Snark ( snark) ) => {
544
- store. dispatch ( SnarkPoolCandidateWorkReceivedAction {
541
+ store. dispatch ( SnarkPoolCandidateAction :: WorkReceived {
545
542
peer_id : action. peer_id ,
546
543
work : snark. clone ( ) ,
547
544
} ) ;
0 commit comments