@@ -71,6 +71,10 @@ import Ouroboros.Consensus.MiniProtocol.ChainSync.Client
71
71
)
72
72
import qualified Ouroboros.Consensus.MiniProtocol.ChainSync.Client as CsClient
73
73
import Ouroboros.Consensus.MiniProtocol.ChainSync.Server
74
+ import Ouroboros.Consensus.MiniProtocol.ObjectDiffusion.Inbound (objectDiffusionInbound )
75
+ import Ouroboros.Consensus.MiniProtocol.ObjectDiffusion.ObjectPool.PerasCert
76
+ import Ouroboros.Consensus.MiniProtocol.ObjectDiffusion.Outbound (objectDiffusionOutbound )
77
+ import Ouroboros.Consensus.MiniProtocol.ObjectDiffusion.PerasCert
74
78
import Ouroboros.Consensus.Node.ExitPolicy
75
79
import Ouroboros.Consensus.Node.NetworkProtocolVersion
76
80
import Ouroboros.Consensus.Node.Run
@@ -199,6 +203,15 @@ data Handlers m addr blk = Handlers
199
203
NodeToNodeVersion ->
200
204
ConnectionId addr ->
201
205
TxSubmissionServerPipelined (GenTxId blk ) (GenTx blk ) m ()
206
+ , hPerasCertDiffusionInbound ::
207
+ NodeToNodeVersion ->
208
+ ConnectionId addr ->
209
+ PerasCertDiffusionInboundPipelined blk m ()
210
+ , hPerasCertDiffusionOutbound ::
211
+ NodeToNodeVersion ->
212
+ ControlMessageSTM m ->
213
+ ConnectionId addr ->
214
+ PerasCertDiffusionOutbound blk m ()
202
215
, hKeepAliveClient ::
203
216
NodeToNodeVersion ->
204
217
ControlMessageSTM m ->
@@ -295,6 +308,20 @@ mkHandlers
295
308
(mapTxSubmissionMempoolReader txForgetValidated $ getMempoolReader getMempool)
296
309
(getMempoolWriter getMempool)
297
310
version
311
+ , hPerasCertDiffusionInbound = \ version peer ->
312
+ objectDiffusionInbound
313
+ (contramap (TraceLabelPeer peer) (Node. certDiffusionInboundTracer tracers))
314
+ (certDiffusionMaxUnacked miniProtocolParameters)
315
+ (makePerasCertPoolReaderFromChainDB $ getChainDB)
316
+ (makePerasCertPoolWriterFromChainDB $ getChainDB)
317
+ version
318
+ , hPerasCertDiffusionOutbound = \ version controlMessageSTM peer ->
319
+ objectDiffusionOutbound
320
+ (contramap (TraceLabelPeer peer) (Node. certDiffusionOutboundTracer tracers))
321
+ (certDiffusionMaxUnacked miniProtocolParameters)
322
+ (makePerasCertPoolReaderFromChainDB $ getChainDB)
323
+ version
324
+ controlMessageSTM
298
325
, hKeepAliveClient = \ _version -> keepAliveClient (Node. keepAliveClientTracer tracers) keepAliveRng
299
326
, hKeepAliveServer = \ _version _peer -> keepAliveServer
300
327
, hPeerSharingClient = \ _version controlMessageSTM _peer -> peerSharingClient controlMessageSTM
0 commit comments