diff --git a/cardano-node/src/Cardano/Tracing/OrphanInstances/HardFork.hs b/cardano-node/src/Cardano/Tracing/OrphanInstances/HardFork.hs index 2853c64b941..b7b7cb8e8f1 100644 --- a/cardano-node/src/Cardano/Tracing/OrphanInstances/HardFork.hs +++ b/cardano-node/src/Cardano/Tracing/OrphanInstances/HardFork.hs @@ -394,8 +394,6 @@ instance ( ToJSON (BlockNodeToClientVersion x) eraNodeToClientVersions instance ToJSON HardForkSpecificNodeToClientVersion where - toJSON HardForkSpecificNodeToClientVersion1 = String "HardForkSpecificNodeToClientVersion1" - toJSON HardForkSpecificNodeToClientVersion2 = String "HardForkSpecificNodeToClientVersion2" toJSON HardForkSpecificNodeToClientVersion3 = String "HardForkSpecificNodeToClientVersion3" instance (ToJSON (BlockNodeToClientVersion blk)) => ToJSON (EraNodeToClientVersion blk) where diff --git a/cardano-node/src/Cardano/Tracing/OrphanInstances/Shelley.hs b/cardano-node/src/Cardano/Tracing/OrphanInstances/Shelley.hs index 7bba56ed962..e7c3581fdc0 100644 --- a/cardano-node/src/Cardano/Tracing/OrphanInstances/Shelley.hs +++ b/cardano-node/src/Cardano/Tracing/OrphanInstances/Shelley.hs @@ -1332,13 +1332,6 @@ instance ToJSON ShelleyNodeToNodeVersion where toJSON ShelleyNodeToNodeVersion1 = String "ShelleyNodeToNodeVersion1" instance ToJSON ShelleyNodeToClientVersion where - toJSON ShelleyNodeToClientVersion1 = String "ShelleyNodeToClientVersion1" - toJSON ShelleyNodeToClientVersion2 = String "ShelleyNodeToClientVersion2" - toJSON ShelleyNodeToClientVersion3 = String "ShelleyNodeToClientVersion3" - toJSON ShelleyNodeToClientVersion4 = String "ShelleyNodeToClientVersion4" - toJSON ShelleyNodeToClientVersion5 = String "ShelleyNodeToClientVersion5" - toJSON ShelleyNodeToClientVersion6 = String "ShelleyNodeToClientVersion6" - toJSON ShelleyNodeToClientVersion7 = String "ShelleyNodeToClientVersion7" toJSON ShelleyNodeToClientVersion8 = String "ShelleyNodeToClientVersion8" toJSON ShelleyNodeToClientVersion9 = String "ShelleyNodeToClientVersion9" toJSON ShelleyNodeToClientVersion10 = String "ShelleyNodeToClientVersion10" diff --git a/cardano-node/test/Test/Cardano/Tracing/OrphanInstances/HardFork.hs b/cardano-node/test/Test/Cardano/Tracing/OrphanInstances/HardFork.hs index e3c33740af2..9d2abd03606 100644 --- a/cardano-node/test/Test/Cardano/Tracing/OrphanInstances/HardFork.hs +++ b/cardano-node/test/Test/Cardano/Tracing/OrphanInstances/HardFork.hs @@ -40,10 +40,10 @@ tests = H.checkSequential , "ntc_HFV1_allDisabled.json") , ( ntc_HFV1_ByronV1 , "ntc_HFV1_ByronV1.json") - , ( ntc_HFV1_ByronV1_ShelleyV1 - , "ntc_HFV1_ByronV1_ShelleyV1.json") - , ( ntc_HFV1_ByronV1_ShelleyV6_ConwayV2 - , "ntc_HFV1_ByronV1_ShelleyV6_ConwayV2.json") + , ( ntc_HFV1_ByronV1_ShelleyV11 + , "ntc_HFV1_ByronV1_ShelleyV11.json") + , ( ntc_HFV1_ByronV1_ShelleyV11_ConwayV11 + , "ntc_HFV1_ByronV1_ShelleyV11_ConwayV11.json") ] where test (actualValue, goldenBaseName) = @@ -65,7 +65,7 @@ ntc_HFV1_allDisabled :: (Consensus.Cardano.CardanoEras StandardCrypto) ntc_HFV1_allDisabled = Consensus.HardForkNodeToClientEnabled - Consensus.HardForkSpecificNodeToClientVersion1 + Consensus.HardForkSpecificNodeToClientVersion3 ( Consensus.EraNodeToClientDisabled -- Byron :* Consensus.EraNodeToClientDisabled -- Shelley :* Consensus.EraNodeToClientDisabled -- Allegra @@ -81,7 +81,7 @@ ntc_HFV1_ByronV1 :: (Consensus.Cardano.CardanoEras StandardCrypto) ntc_HFV1_ByronV1 = Consensus.HardForkNodeToClientEnabled - Consensus.HardForkSpecificNodeToClientVersion1 + Consensus.HardForkSpecificNodeToClientVersion3 ( Consensus.EraNodeToClientEnabled Consensus.Cardano.ByronNodeToClientVersion1 -- Byron :* Consensus.EraNodeToClientDisabled -- Shelley :* Consensus.EraNodeToClientDisabled -- Allegra @@ -92,14 +92,14 @@ ntc_HFV1_ByronV1 = :* Nil ) -ntc_HFV1_ByronV1_ShelleyV1 :: +ntc_HFV1_ByronV1_ShelleyV11 :: Consensus.HardForkNodeToClientVersion (Consensus.Cardano.CardanoEras StandardCrypto) -ntc_HFV1_ByronV1_ShelleyV1 = +ntc_HFV1_ByronV1_ShelleyV11 = Consensus.HardForkNodeToClientEnabled - Consensus.HardForkSpecificNodeToClientVersion1 + Consensus.HardForkSpecificNodeToClientVersion3 ( Consensus.EraNodeToClientEnabled Consensus.Cardano.ByronNodeToClientVersion1 -- Byron - :* Consensus.EraNodeToClientEnabled Consensus.Cardano.ShelleyNodeToClientVersion1 -- Shelley + :* Consensus.EraNodeToClientEnabled Consensus.Cardano.ShelleyNodeToClientVersion11 -- Shelley :* Consensus.EraNodeToClientDisabled -- Allegra :* Consensus.EraNodeToClientDisabled -- Mary :* Consensus.EraNodeToClientDisabled -- Alonzo @@ -108,19 +108,19 @@ ntc_HFV1_ByronV1_ShelleyV1 = :* Nil ) -ntc_HFV1_ByronV1_ShelleyV6_ConwayV2 :: +ntc_HFV1_ByronV1_ShelleyV11_ConwayV11 :: Consensus.HardForkNodeToClientVersion (Consensus.Cardano.CardanoEras StandardCrypto) -ntc_HFV1_ByronV1_ShelleyV6_ConwayV2 = +ntc_HFV1_ByronV1_ShelleyV11_ConwayV11 = Consensus.HardForkNodeToClientEnabled - Consensus.HardForkSpecificNodeToClientVersion1 + Consensus.HardForkSpecificNodeToClientVersion3 ( Consensus.EraNodeToClientEnabled Consensus.Cardano.ByronNodeToClientVersion1 -- Byron - :* Consensus.EraNodeToClientEnabled Consensus.Cardano.ShelleyNodeToClientVersion6 -- Shelley + :* Consensus.EraNodeToClientEnabled Consensus.Cardano.ShelleyNodeToClientVersion11 -- Shelley :* Consensus.EraNodeToClientDisabled -- Allegra :* Consensus.EraNodeToClientDisabled -- Mary :* Consensus.EraNodeToClientDisabled -- Alonzo :* Consensus.EraNodeToClientDisabled -- Babbage - :* Consensus.EraNodeToClientEnabled Consensus.Cardano.ShelleyNodeToClientVersion2 -- Conway + :* Consensus.EraNodeToClientEnabled Consensus.Cardano.ShelleyNodeToClientVersion11 -- Conway :* Nil ) diff --git a/cardano-node/test/Test/Cardano/Tracing/OrphanInstances/data/ntc_HFV1_ByronV1.json b/cardano-node/test/Test/Cardano/Tracing/OrphanInstances/data/ntc_HFV1_ByronV1.json index 9c06bc3b405..eb74a30a9ac 100644 --- a/cardano-node/test/Test/Cardano/Tracing/OrphanInstances/data/ntc_HFV1_ByronV1.json +++ b/cardano-node/test/Test/Cardano/Tracing/OrphanInstances/data/ntc_HFV1_ByronV1.json @@ -1 +1 @@ -{"eraNodeToClientVersions":["ByronNodeToClientVersion1","EraNodeToClientDisabled","EraNodeToClientDisabled","EraNodeToClientDisabled","EraNodeToClientDisabled","EraNodeToClientDisabled","EraNodeToClientDisabled"],"hardForkSpecificNodeToClientVersion":"HardForkSpecificNodeToClientVersion1","tag":"HardForkNodeToClientEnabled"} \ No newline at end of file +{"eraNodeToClientVersions":["ByronNodeToClientVersion1","EraNodeToClientDisabled","EraNodeToClientDisabled","EraNodeToClientDisabled","EraNodeToClientDisabled","EraNodeToClientDisabled","EraNodeToClientDisabled"],"hardForkSpecificNodeToClientVersion":"HardForkSpecificNodeToClientVersion3","tag":"HardForkNodeToClientEnabled"} \ No newline at end of file diff --git a/cardano-node/test/Test/Cardano/Tracing/OrphanInstances/data/ntc_HFV1_allDisabled.json b/cardano-node/test/Test/Cardano/Tracing/OrphanInstances/data/ntc_HFV1_allDisabled.json index 6f20223b82b..d4093da0173 100644 --- a/cardano-node/test/Test/Cardano/Tracing/OrphanInstances/data/ntc_HFV1_allDisabled.json +++ b/cardano-node/test/Test/Cardano/Tracing/OrphanInstances/data/ntc_HFV1_allDisabled.json @@ -1 +1 @@ -{"eraNodeToClientVersions":["EraNodeToClientDisabled","EraNodeToClientDisabled","EraNodeToClientDisabled","EraNodeToClientDisabled","EraNodeToClientDisabled","EraNodeToClientDisabled","EraNodeToClientDisabled"],"hardForkSpecificNodeToClientVersion":"HardForkSpecificNodeToClientVersion1","tag":"HardForkNodeToClientEnabled"} \ No newline at end of file +{"eraNodeToClientVersions":["EraNodeToClientDisabled","EraNodeToClientDisabled","EraNodeToClientDisabled","EraNodeToClientDisabled","EraNodeToClientDisabled","EraNodeToClientDisabled","EraNodeToClientDisabled"],"hardForkSpecificNodeToClientVersion":"HardForkSpecificNodeToClientVersion3","tag":"HardForkNodeToClientEnabled"} \ No newline at end of file