Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
### Non-Breaking

- Added `NoThunks` instance for `NodeToNodeVersion`.

Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import Codec.CBOR.Term qualified as CBOR

import Control.DeepSeq
import GHC.Generics
import NoThunks.Class (NoThunks)
import Ouroboros.Network.CodecCBORTerm
import Ouroboros.Network.Handshake.Acceptable (Accept (..), Acceptable (..))
import Ouroboros.Network.Handshake.Queryable (Queryable (..))
Expand Down Expand Up @@ -70,7 +71,7 @@ data NodeToNodeVersion =
-- ^ Plomin HF, mandatory on mainnet as of 2025.01.29
| NodeToNodeV_15
-- ^ SRV support
deriving (Eq, Ord, Enum, Bounded, Show, Generic, NFData)
deriving (Eq, Ord, Enum, Bounded, Show, Generic, NFData, NoThunks)

nodeToNodeVersionCodec :: CodecCBORTerm (Text, Maybe Int) NodeToNodeVersion
nodeToNodeVersionCodec = CodecCBORTerm { encodeTerm, decodeTerm }
Expand Down