File tree 2 files changed +11
-0
lines changed
ouroboros-network/src/Ouroboros/Network
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ module Ouroboros.Network.Diffusion.Configuration
16
16
, defaultSyncTargets
17
17
, defaultDeadlineChurnInterval
18
18
, defaultBulkChurnInterval
19
+ , defaultEnableNewTxSubmissionProtocol
19
20
-- re-exports
20
21
, AcceptedConnectionsLimit (.. )
21
22
, BlockFetchConfiguration (.. )
@@ -65,6 +66,8 @@ import Ouroboros.Network.Protocol.ChainSync.Codec (ChainSyncTimeout (..))
65
66
import Ouroboros.Network.Protocol.Handshake (handshake_QUERY_SHUTDOWN_DELAY )
66
67
import Ouroboros.Network.Protocol.Limits (shortWait )
67
68
import Ouroboros.Network.Server.RateLimiting (AcceptedConnectionsLimit (.. ))
69
+ import Ouroboros.Network.TxSubmission.Inbound.Server
70
+ (EnableNewTxSubmissionProtocol (.. ))
68
71
69
72
70
73
-- | Default number of bootstrap peers
@@ -179,3 +182,6 @@ defaultDeadlineChurnInterval = 3300
179
182
180
183
defaultBulkChurnInterval :: DiffTime
181
184
defaultBulkChurnInterval = 900
185
+
186
+ defaultEnableNewTxSubmissionProtocol :: EnableNewTxSubmissionProtocol
187
+ defaultEnableNewTxSubmissionProtocol = DisableNewTxSubmissionProtocol
Original file line number Diff line number Diff line change @@ -25,6 +25,11 @@ import Ouroboros.Network.Protocol.TxSubmission2.Server
25
25
import Ouroboros.Network.TxSubmission.Inbound.Registry (PeerTxAPI (.. ))
26
26
import Ouroboros.Network.TxSubmission.Inbound.Types
27
27
28
+ -- | Flag to enable/disable the usage of the new tx submission protocol
29
+ --
30
+ data EnableNewTxSubmissionProtocol =
31
+ EnableNewTxSubmissionProtocol
32
+ | DisableNewTxSubmissionProtocol
28
33
29
34
-- | A tx-submission outbound side (server, sic!).
30
35
--
You can’t perform that action at this time.
0 commit comments