From a2f330691319b136f9183ef1548e35845ca5f422 Mon Sep 17 00:00:00 2001 From: maxalexweber1 Date: Mon, 12 Oct 2026 18:24:41 +0200 Subject: [PATCH 1/2] fix: rewardAccountSummaries omits registered credentials that are not delegated to a pool (cherry picked from commit fa9cb4ed81fa29e1f84960fbdbeac87f8c228a15) --- server/src/Ogmios/Data/Json/Query.hs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/src/Ogmios/Data/Json/Query.hs b/server/src/Ogmios/Data/Json/Query.hs index 1f07a251b..82ef65e09 100644 --- a/server/src/Ogmios/Data/Json/Query.hs +++ b/server/src/Ogmios/Data/Json/Query.hs @@ -1785,8 +1785,12 @@ parseQueryLedgerRewardAccountSummaries genResult = (Map.zipWithMatched $ \_ drep mk -> mk (SJust drep)) dreps ( Map.merge + -- pool, but no reward account; impossible, a delegation requires a registration Map.dropMissing - Map.dropMissing + -- reward account, but no pool: registered without a pool delegation + (Map.mapMissing $ \_ rewards drep -> + RewardAccountSummary SNothing drep rewards + ) ( Map.zipWithMatched ( \_ poolDelegate rewards drep -> RewardAccountSummary (SJust poolDelegate) drep rewards From 582664cbae0903d196aae891ea5719bbb1d24a5a Mon Sep 17 00:00:00 2001 From: Pablo Lamela Date: Wed, 18 Nov 2026 16:24:22 +0000 Subject: [PATCH 2/2] Add a changelog entry for the reward account summaries fix --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5885756af..b5bb8c96b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -72,6 +72,8 @@ math: true - `queryNetwork/genesisConfiguration` for the Conway era now returns `plutusCostModels` (the Plutus V3 cost model) and `minFeeReferenceScripts` in `updatableParameters`. Before, both were missing. +- `queryLedgerState/rewardAccountSummaries` now returns registered reward accounts that are not delegated to a stake pool, without a `stakePool` field. Before, it left them out. + ### [6.14.0] - 2025-10-16 #### Added