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