Skip to content

Commit 91d8ca3

Browse files
committed
[wip] integrate GetLedgerPeerSnapshot query
1 parent b786f7c commit 91d8ca3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cardano-api/src/Cardano/Api/Query/Internal/Type/QueryInMode.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ decodeStakeSnapshot (SerialisedStakeSnapshots (Serialised ls)) = StakeSnapshot <
427427
decodeBigLedgerPeerSnapshot
428428
:: Consensus.ShelleyNodeToClientVersion
429429
-> Serialised LedgerPeerSnapshot
430-
-> Either (LBS.ByteString, DecoderError) LedgerPeerSnapshot
430+
-> Either (LBS.ByteString, DecoderError) (LedgerPeerSnapshot BigLedgerPeers)
431431
decodeBigLedgerPeerSnapshot ntcV (Serialised lps) =
432432
first
433433
(lps,)
@@ -694,7 +694,7 @@ toConsensusQueryShelleyBased sbe = \case
694694
)
695695
sbe
696696
QueryLedgerPeerSnapshot ->
697-
Some (consensusQueryInEraInMode era (Consensus.GetCBOR Consensus.GetBigLedgerPeerSnapshot))
697+
Some (consensusQueryInEraInMode era (Consensus.GetCBOR Consensus.GetLedgerPeerSnapshot))
698698
QueryStakePoolDefaultVote govActs ->
699699
caseShelleyToBabbageOrConwayEraOnwards
700700
( const $
@@ -1016,7 +1016,7 @@ fromConsensusQueryResultShelleyBased sbe sbeQuery q' r' =
10161016
_ -> fromConsensusQueryResultMismatch
10171017
QueryLedgerPeerSnapshot{} ->
10181018
case q' of
1019-
Consensus.GetCBOR Consensus.GetBigLedgerPeerSnapshot ->
1019+
Consensus.GetCBOR Consensus.GetLedgerPeerSnapshot{} ->
10201020
r'
10211021
_ -> fromConsensusQueryResultMismatch
10221022
QueryStakePoolDefaultVote{} ->

0 commit comments

Comments
 (0)