Skip to content

Commit f9f7f24

Browse files
committed
fixup! Update GetBigLedgerPeerSnapshot query
1 parent 6323a51 commit f9f7f24

File tree

1 file changed

+4
-1
lines changed
  • ouroboros-consensus-cardano/src/shelley/Ouroboros/Consensus/Shelley/Ledger

1 file changed

+4
-1
lines changed

ouroboros-consensus-cardano/src/shelley/Ouroboros/Consensus/Shelley/Ledger/Query.hs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,10 @@ encodeShelleyQuery query = case query of
959959
then CBOR.encodeListLen 2 <> CBOR.encodeWord8 34 <> CBOR.encodeWord8 peerKindTag
960960
else CBOR.encodeListLen 1 <> CBOR.encodeWord8 34
961961
where
962-
tag = case kind of AllLedgerPeers -> 0; BigLedgerPeers -> 1
962+
peerKindTag =
963+
case peerKind of
964+
AllLedgerPeers -> 0
965+
BigLedgerPeers -> 1
963966
QueryStakePoolDefaultVote stakePoolKey ->
964967
CBOR.encodeListLen 2 <> CBOR.encodeWord8 35 <> LC.toEraCBOR @era stakePoolKey
965968
GetPoolDistr2 poolids ->

0 commit comments

Comments
 (0)