Skip to content

Commit

Permalink
Call putPoolRetirement on encountering a retirement certificate.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanknowles committed Jul 6, 2020
1 parent 31c391e commit 503cc7e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/shelley/src/Cardano/Wallet/Shelley/Pools.hs
Expand Up @@ -362,11 +362,12 @@ monitorStakePools tr gp nl db@DBLayer{..} = do
Right () ->
pure ()
forM_ registrations $ \case
Registration pool -> do
liftIO $ traceWith tr $ MsgStakePoolRegistration pool
putPoolRegistration slot pool
Registration cert -> do
liftIO $ traceWith tr $ MsgStakePoolRegistration cert
putPoolRegistration slot cert
Retirement cert -> do
liftIO $ traceWith tr $ MsgStakePoolRetirement cert
putPoolRetirement slot cert
pure Continue

monitorMetadata
Expand Down

0 comments on commit 503cc7e

Please sign in to comment.