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 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