Skip to content

Commit

Permalink
WIP some fixes for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jasagredo committed Dec 27, 2024
1 parent 4ef2ea7 commit 0e777b5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
3 changes: 1 addition & 2 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ package plutus-scripts-bench
constraints:
, wai-extra < 3.1.15
, Cabal < 3.14
, hedgehog-extras ==0.6.4.0
, io-sim ==1.5.1.0
, hedgehog-extras <0.6.5.1

allow-newer:
, katip:Win32
Expand Down
2 changes: 1 addition & 1 deletion cardano-node/src/Cardano/Node/Run.hs
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ updateTopologyConfiguration :: Tracer IO (StartupTrace blk)
updateTopologyConfiguration startupTracer nc localRootsVar publicRootsVar useLedgerVar
useBootsrapPeersVar ledgerPeerSnapshotPathVar = do
traceWith startupTracer NetworkConfigUpdate
result <- try $ readTopologyFileOrError nc
result <- try $ readTopologyFileOrError nc startupTracer
case result of
Left (FatalError err) ->
traceWith startupTracer
Expand Down
3 changes: 2 additions & 1 deletion cardano-node/test/Test/Cardano/Node/Gen.hs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import Cardano.Node.Configuration.TopologyP2P (LocalRootPeersGroup (..
PeerAdvertise (..), PublicRootPeers (..), RootConfig (..))
import Cardano.Node.Types
import Cardano.Slotting.Slot (SlotNo (..))
import Ouroboros.Network.NodeToNode.Version
import Ouroboros.Network.PeerSelection.Bootstrap
import Ouroboros.Network.PeerSelection.LedgerPeers.Type (AfterSlot (..),
UseLedgerPeers (..))
Expand Down Expand Up @@ -182,7 +183,7 @@ genLocalRootPeersGroup = do
ra <- genRootConfig
hval <- Gen.int (Range.linear 0 (length (rootAccessPoints ra)))
wval <- WarmValency <$> Gen.int (Range.linear 0 hval)
LocalRootPeersGroup ra (HotValency hval) wval <$> genPeerTrustable <*> undefined -- TODO @ouroboros-network
LocalRootPeersGroup ra (HotValency hval) wval <$> genPeerTrustable <*> pure InitiatorAndResponderDiffusionMode

genLocalRootPeersGroups :: Gen LocalRootPeersGroups
genLocalRootPeersGroups =
Expand Down
2 changes: 1 addition & 1 deletion configuration/cardano/mainnet-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"RequiresNetworkMagic": "RequiresNoMagic",
"ShelleyGenesisFile": "mainnet-shelley-genesis.json",
"ShelleyGenesisHash": "1a3be38bcbb7911969283716ad7aa550250226b76a61fc51cc9a9a35d9276d81",
"ConsensusMode": "PraosMode"
"ConsensusMode": "PraosMode",
"TargetNumberOfActivePeers": 20,
"TargetNumberOfEstablishedPeers": 50,
"TargetNumberOfKnownPeers": 150,
Expand Down
2 changes: 1 addition & 1 deletion configuration/cardano/mainnet-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ConwayGenesisHash: 15a199f895e461ec0ffc6dd4e4028af28a492ab4e806d39cb674c88f7643e
ShelleyGenesisFile: mainnet-shelley-genesis.json
ShelleyGenesisHash: 1a3be38bcbb7911969283716ad7aa550250226b76a61fc51cc9a9a35d9276d81

EnableP2P: true
EnableP2P: True

##### Core protocol parameters #####

Expand Down

0 comments on commit 0e777b5

Please sign in to comment.