Skip to content

Commit

Permalink
Update lib/shelley/src/Cardano/Wallet/Shelley/Pools.hs
Browse files Browse the repository at this point in the history
Co-authored-by: Jonathan Knowles <jonathan.knowles@iohk.io>
  • Loading branch information
hasufell and jonathanknowles committed Oct 26, 2020
1 parent bffe5c0 commit 950ea4a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/shelley/src/Cardano/Wallet/Shelley/Pools.hs
Expand Up @@ -292,8 +292,9 @@ newStakePoolLayer nl db@DBLayer {..} worker = do
case r of
Left e@(PastHorizon{}) ->
throwE (ErrListPoolsPastHorizonException e)
Right r' -> pure (ApiListStakePools r'
(Just . ApiT . Iso8601Time . posixSecondsToUTCTime $ lastGC))
Right r' -> pure
$ ApiListStakePools r' $ Just $ ApiT
$ Iso8601Time $ posixSecondsToUTCTime lastGC
where
fromErrCurrentNodeTip :: ErrCurrentNodeTip -> ErrListPools
fromErrCurrentNodeTip = \case
Expand Down

0 comments on commit 950ea4a

Please sign in to comment.