Skip to content

Commit

Permalink
Added EnableNewTxSubmissionProtocol flag
Browse files Browse the repository at this point in the history
  • Loading branch information
bolt12 committed Sep 19, 2024
1 parent 559c267 commit d900a38
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module Ouroboros.Network.Diffusion.Configuration
, defaultSyncTargets
, defaultDeadlineChurnInterval
, defaultBulkChurnInterval
, defaultEnableNewTxSubmissionProtocol
-- re-exports
, AcceptedConnectionsLimit (..)
, BlockFetchConfiguration (..)
Expand Down Expand Up @@ -65,6 +66,8 @@ import Ouroboros.Network.Protocol.ChainSync.Codec (ChainSyncTimeout (..))
import Ouroboros.Network.Protocol.Handshake (handshake_QUERY_SHUTDOWN_DELAY)
import Ouroboros.Network.Protocol.Limits (shortWait)
import Ouroboros.Network.Server.RateLimiting (AcceptedConnectionsLimit (..))
import Ouroboros.Network.TxSubmission.Inbound.Server
(EnableNewTxSubmissionProtocol (..))


-- | Default number of bootstrap peers
Expand Down Expand Up @@ -179,3 +182,6 @@ defaultDeadlineChurnInterval = 3300

defaultBulkChurnInterval :: DiffTime
defaultBulkChurnInterval = 900

defaultEnableNewTxSubmissionProtocol :: EnableNewTxSubmissionProtocol
defaultEnableNewTxSubmissionProtocol = DisableNewTxSubmissionProtocol
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ import Ouroboros.Network.Protocol.TxSubmission2.Server
import Ouroboros.Network.TxSubmission.Inbound.Registry (PeerTxAPI (..))
import Ouroboros.Network.TxSubmission.Inbound.Types

-- | Flag to enable/disable the usage of the new tx submission protocol
--
data EnableNewTxSubmissionProtocol =
EnableNewTxSubmissionProtocol
| DisableNewTxSubmissionProtocol

-- | A tx-submission outbound side (server, sic!).
--
Expand Down

0 comments on commit d900a38

Please sign in to comment.