Skip to content

Commit

Permalink
Fix NodeToClientVersionV19 encoding bit
Browse files Browse the repository at this point in the history
  • Loading branch information
crocodile-dentist committed Jan 30, 2025
1 parent 7b1bbe9 commit b7e4476
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cardano-ping/src/Cardano/Network/Ping.hs
Original file line number Diff line number Diff line change
Expand Up @@ -360,12 +360,13 @@ handshakeReqEnc versions query =
CBOR.encodeWord (18 `setBit` nodeToClientVersionBit)
<> nodeToClientDataWithQuery magic
encodeVersion (NodeToClientVersionV19 magic) =
CBOR.encodeWord (18 `setBit` nodeToClientVersionBit)
CBOR.encodeWord (19 `setBit` nodeToClientVersionBit)
<> nodeToClientDataWithQuery magic
encodeVersion (NodeToClientVersionV20 magic) =
CBOR.encodeWord (20 `setBit` nodeToClientVersionBit)
<> nodeToClientDataWithQuery magic


-- node-to-node
encodeVersion (NodeToNodeVersionV1 magic) =
CBOR.encodeWord 1
Expand Down

0 comments on commit b7e4476

Please sign in to comment.