Skip to content

Commit

Permalink
Config for ledgerpeers
Browse files Browse the repository at this point in the history
Make the slot number that we start to use peers from the ledger
configurable.
  • Loading branch information
karknu authored and coot committed Jan 28, 2021
1 parent 5ee829b commit a675824
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -49,7 +49,7 @@ import Ouroboros.Network.PeerSelection.RootPeersDNS
import Text.Printf

-- | Only use the ledger after the given slot number.
data UseLedgerAfter = DontUseLedger | UseLedgerAfter SlotNo deriving Show
data UseLedgerAfter = DontUseLedger | UseLedgerAfter SlotNo deriving (Eq, Show)

isLedgerPeersEnabled :: UseLedgerAfter -> Bool
isLedgerPeersEnabled DontUseLedger = False
Expand Down

0 comments on commit a675824

Please sign in to comment.