@@ -23,6 +23,7 @@ use crate::external_snark_worker::ExternalSnarkWorkerAction;
2323use crate :: ledger:: read:: LedgerReadAction ;
2424use crate :: ledger:: write:: LedgerWriteAction ;
2525use crate :: ledger:: LedgerAction ;
26+ use crate :: p2p:: callbacks:: P2pCallbacksAction ;
2627use crate :: p2p:: channels:: best_tip:: P2pChannelsBestTipAction ;
2728use crate :: p2p:: channels:: best_tip_effectful:: P2pChannelsBestTipEffectfulAction ;
2829use crate :: p2p:: channels:: rpc:: P2pChannelsRpcAction ;
@@ -147,6 +148,7 @@ pub enum ActionKind {
147148 ConsensusBlockSnarkVerifySuccess ,
148149 ConsensusDetectForkRange ,
149150 ConsensusLongRangeForkResolve ,
151+ ConsensusP2pBestTipUpdate ,
150152 ConsensusPrune ,
151153 ConsensusShortRangeForkResolve ,
152154 EventSourceNewEvent ,
@@ -174,6 +176,15 @@ pub enum ActionKind {
174176 LedgerWriteInit ,
175177 LedgerWritePending ,
176178 LedgerWriteSuccess ,
179+ P2pCallbacksP2pChannelsRpcReady ,
180+ P2pCallbacksP2pChannelsRpcRequestReceived ,
181+ P2pCallbacksP2pChannelsRpcResponseReceived ,
182+ P2pCallbacksP2pChannelsRpcTimeout ,
183+ P2pCallbacksP2pChannelsStreamingRpcReady ,
184+ P2pCallbacksP2pChannelsStreamingRpcResponseReceived ,
185+ P2pCallbacksP2pChannelsStreamingRpcTimeout ,
186+ P2pCallbacksP2pDisconnection ,
187+ P2pCallbacksRpcRespondBestTip ,
177188 P2pChannelsBestTipInit ,
178189 P2pChannelsBestTipPending ,
179190 P2pChannelsBestTipReady ,
@@ -427,6 +438,7 @@ pub enum ActionKind {
427438 RpcLedgerAccountsGetPending ,
428439 RpcLedgerAccountsGetSuccess ,
429440 RpcMessageProgressGet ,
441+ RpcP2pConnectionIncomingAnswerReady ,
430442 RpcP2pConnectionIncomingError ,
431443 RpcP2pConnectionIncomingInit ,
432444 RpcP2pConnectionIncomingPending ,
@@ -599,7 +611,7 @@ pub enum ActionKind {
599611}
600612
601613impl ActionKind {
602- pub const COUNT : u16 = 493 ;
614+ pub const COUNT : u16 = 504 ;
603615}
604616
605617impl std:: fmt:: Display for ActionKind {
@@ -614,6 +626,7 @@ impl ActionKindGet for Action {
614626 Self :: CheckTimeouts ( a) => a. kind ( ) ,
615627 Self :: EventSource ( a) => a. kind ( ) ,
616628 Self :: P2p ( a) => a. kind ( ) ,
629+ Self :: P2pCallbacks ( a) => a. kind ( ) ,
617630 Self :: Ledger ( a) => a. kind ( ) ,
618631 Self :: Snark ( a) => a. kind ( ) ,
619632 Self :: Consensus ( a) => a. kind ( ) ,
@@ -664,6 +677,32 @@ impl ActionKindGet for P2pAction {
664677 }
665678}
666679
680+ impl ActionKindGet for P2pCallbacksAction {
681+ fn kind ( & self ) -> ActionKind {
682+ match self {
683+ Self :: P2pChannelsRpcReady { .. } => ActionKind :: P2pCallbacksP2pChannelsRpcReady ,
684+ Self :: P2pChannelsRpcTimeout { .. } => ActionKind :: P2pCallbacksP2pChannelsRpcTimeout ,
685+ Self :: P2pChannelsRpcResponseReceived { .. } => {
686+ ActionKind :: P2pCallbacksP2pChannelsRpcResponseReceived
687+ }
688+ Self :: P2pChannelsRpcRequestReceived { .. } => {
689+ ActionKind :: P2pCallbacksP2pChannelsRpcRequestReceived
690+ }
691+ Self :: P2pChannelsStreamingRpcReady => {
692+ ActionKind :: P2pCallbacksP2pChannelsStreamingRpcReady
693+ }
694+ Self :: P2pChannelsStreamingRpcTimeout { .. } => {
695+ ActionKind :: P2pCallbacksP2pChannelsStreamingRpcTimeout
696+ }
697+ Self :: P2pChannelsStreamingRpcResponseReceived { .. } => {
698+ ActionKind :: P2pCallbacksP2pChannelsStreamingRpcResponseReceived
699+ }
700+ Self :: P2pDisconnection { .. } => ActionKind :: P2pCallbacksP2pDisconnection ,
701+ Self :: RpcRespondBestTip { .. } => ActionKind :: P2pCallbacksRpcRespondBestTip ,
702+ }
703+ }
704+ }
705+
667706impl ActionKindGet for LedgerAction {
668707 fn kind ( & self ) -> ActionKind {
669708 match self {
@@ -698,6 +737,7 @@ impl ActionKindGet for ConsensusAction {
698737 Self :: ShortRangeForkResolve { .. } => ActionKind :: ConsensusShortRangeForkResolve ,
699738 Self :: LongRangeForkResolve { .. } => ActionKind :: ConsensusLongRangeForkResolve ,
700739 Self :: BestTipUpdate { .. } => ActionKind :: ConsensusBestTipUpdate ,
740+ Self :: P2pBestTipUpdate { .. } => ActionKind :: ConsensusP2pBestTipUpdate ,
701741 Self :: Prune => ActionKind :: ConsensusPrune ,
702742 }
703743 }
@@ -857,6 +897,9 @@ impl ActionKindGet for RpcAction {
857897 Self :: P2pConnectionIncomingRespond { .. } => {
858898 ActionKind :: RpcP2pConnectionIncomingRespond
859899 }
900+ Self :: P2pConnectionIncomingAnswerReady { .. } => {
901+ ActionKind :: RpcP2pConnectionIncomingAnswerReady
902+ }
860903 Self :: P2pConnectionIncomingError { .. } => ActionKind :: RpcP2pConnectionIncomingError ,
861904 Self :: P2pConnectionIncomingSuccess { .. } => {
862905 ActionKind :: RpcP2pConnectionIncomingSuccess
0 commit comments