Skip to content

Commit db69e38

Browse files
committed
add NodeToClientV_23 -> GetDRepsDelegations
1 parent 3f018a2 commit db69e38

File tree

1 file changed

+4
-0
lines changed
  • ouroboros-network-api/src/Ouroboros/Network/NodeToClient

1 file changed

+4
-0
lines changed

ouroboros-network-api/src/Ouroboros/Network/NodeToClient/Version.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ data NodeToClientVersion
5656
-- ^ new codecs for @PParams@ and @CompactGenesis@
5757
| NodeToClientV_22
5858
-- ^ support SRV records in @GetBigLedgerPeerSnapshot@ query
59+
| NodeToClientV_23
60+
-- ^ added @QueryDRepsDelegations@,
5961
deriving (Eq, Ord, Enum, Bounded, Show, Generic, NFData)
6062

6163
-- | We set 16ths bit to distinguish `NodeToNodeVersion` and
@@ -76,6 +78,7 @@ nodeToClientVersionCodec = CodecCBORTerm { encodeTerm, decodeTerm }
7678
NodeToClientV_20 -> enc 20
7779
NodeToClientV_21 -> enc 21
7880
NodeToClientV_22 -> enc 22
81+
NodeToClientV_23 -> enc 23
7982
where
8083
enc :: Int -> CBOR.Term
8184
enc = CBOR.TInt . (`setBit` nodeToClientVersionBit)
@@ -89,6 +92,7 @@ nodeToClientVersionCodec = CodecCBORTerm { encodeTerm, decodeTerm }
8992
20 -> Right NodeToClientV_20
9093
21 -> Right NodeToClientV_21
9194
22 -> Right NodeToClientV_22
95+
23 -> Right NodeToClientV_23
9296
n -> Left (unknownTag n)
9397
where
9498
dec :: CBOR.Term -> Either (Text, Maybe Int) Int

0 commit comments

Comments
 (0)