Skip to content

Commit

Permalink
Fixup warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Anviking committed Nov 30, 2020
1 parent 1410fb6 commit bdf473e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/shelley/src/Cardano/Wallet/Shelley/Network.hs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ import Ouroboros.Network.Protocol.ChainSync.Client
import Ouroboros.Network.Protocol.ChainSync.ClientPipelined
( chainSyncClientPeerPipelined )
import Ouroboros.Network.Protocol.Handshake.Version
( Version (..), simpleSingletonVersions )
( simpleSingletonVersions )
import Ouroboros.Network.Protocol.LocalStateQuery.Client
( localStateQueryClientPeer )
import Ouroboros.Network.Protocol.LocalStateQuery.Type
Expand Down Expand Up @@ -292,7 +292,7 @@ withNetworkLayer
-> (NetworkLayer IO (IO Shelley) (CardanoBlock StandardCrypto) -> IO a)
-- ^ Callback function with the network layer
-> IO a
withNetworkLayer tr np addrInfo versionData action = do
withNetworkLayer tr np addrInfo (versionData, _) action = do
-- NOTE: We keep client connections running for accessing the node tip,
-- submitting transactions, querying parameters and delegations/rewards.
--
Expand Down Expand Up @@ -968,10 +968,10 @@ connectClient
:: Tracer IO NetworkLayerLog
-> RetryHandlers
-> NetworkClient IO
-> (NodeToClientVersionData, CodecCBORTerm Text NodeToClientVersionData)
-> NodeToClientVersionData
-> FilePath
-> IO ()
connectClient tr handlers client (vData, vCodec) addr = withIOManager $ \iocp -> do
connectClient tr handlers client vData addr = withIOManager $ \iocp -> do
let versions = simpleSingletonVersions nodeToClientVersion vData client
let tracers = NetworkConnectTracers
{ nctMuxTracer = nullTracer
Expand Down
8 changes: 8 additions & 0 deletions lib/shelley/src/Cardano/Wallet/Shelley/Pools.hs
Original file line number Diff line number Diff line change
Expand Up @@ -626,12 +626,20 @@ monitorStakePools tr gp nl DBLayer{..} =
handleErr (putPoolProduction header (getProducer blk))
garbageCollectPools slot latestGarbageCollectionEpochRef
putPoolCertificates slot certificates
BlockMary _ ->
error "TODO: unimplemented mary era"
BlockAllegra _ ->
error "TODO: unimplemented allegra era"

forLastBlock = \case
BlockByron blk ->
putHeader (toByronBlockHeader gp blk)
BlockShelley blk ->
putHeader (toShelleyBlockHeader getGenesisBlockHash blk)
BlockMary _ ->
error "TODO: unimplemented mary era"
BlockAllegra _ ->
error "TODO: unimplemented allegra era"

handleErr action = runExceptT action
>>= \case
Expand Down

0 comments on commit bdf473e

Please sign in to comment.