Skip to content
This repository has been archived by the owner on Nov 2, 2022. It is now read-only.

Commit

Permalink
1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
fosskers committed Nov 21, 2019
1 parent bb7f34b commit c8ab5be
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 53 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
.stack-work/
*.dump-hi
dist-newstyle/*
*~
2 changes: 1 addition & 1 deletion CHANGELOG.md
@@ -1,6 +1,6 @@
# `chainweb-miner` Changelog

## 1.0.2 (2019-11-??)
## 1.0.2 (2019-11-21)

#### New Features

Expand Down
2 changes: 1 addition & 1 deletion chainweb-miner.cabal
@@ -1,7 +1,7 @@
cabal-version: 2.2

name: chainweb-miner
version: 1.0.1
version: 1.0.2
description: Official mining software for the Kadena Public Blockchain.
homepage: https://github.com/kadena-io/chainweb-miner
author: Kadena Developers
Expand Down
2 changes: 1 addition & 1 deletion exec/Miner.hs
Expand Up @@ -115,7 +115,7 @@ work cmd cargs = do
lopts <- setLogMinLevel (ll cargs) . setLogUseLoc False <$> logOptionsHandle stderr True
withLogFunc lopts $ \logFunc -> do
g <- MWC.createSystemRandom
m <- newManager (mkManagerSettings ss Nothing)
m <- newManager (mkManagerSettings tlsSettings Nothing)
euvs <- sequence <$> traverse (nodeVer m) (coordinators cargs)
case euvs of
Left e -> throwString $ show e
Expand Down
4 changes: 2 additions & 2 deletions exec/Miner/Balance.hs
Expand Up @@ -24,15 +24,15 @@ import Chainweb.ChainId (chainIdFromText)
import Chainweb.Pact.RestAPI.Client (pactLocalApiClient)
import Chainweb.RestAPI.NodeInfo (NodeInfo(..), NodeInfoApi)
import Chainweb.Utils (sshow)
import Miner.Types (ss)
import Miner.Types (tlsSettings)
import Pact.ApiReq
import qualified Pact.Types.Command as P (CommandResult(..), PactResult(..))
import Pact.Types.Exp (Literal(..))
import Pact.Types.PactValue (PactValue(..))

getBalances :: BaseUrl -> Text -> IO ()
getBalances url mi = do
balanceStmts <- newManager (mkManagerSettings ss Nothing) >>= go . cenv
balanceStmts <- newManager (mkManagerSettings tlsSettings Nothing) >>= go . cenv
case balanceStmts of
These errors balances -> do
printf "-- Retrieved Balances -- \n"
Expand Down
6 changes: 3 additions & 3 deletions exec/Miner/Types.hs
Expand Up @@ -16,7 +16,7 @@ module Miner.Types
, GPUEnv(..)
, OtherCommand(..)
-- * miscellaneous
, ss
, tlsSettings
) where

import Chainweb.Utils (textOption)
Expand Down Expand Up @@ -181,5 +181,5 @@ balancesOpts = Balance <$> pUrl <*> pMinerName
-- | This allows this code to accept the self-signed certificates from
-- `chainweb-node`.
--
ss :: TLSSettings
ss = TLSSettingsSimple True True True
tlsSettings :: TLSSettings
tlsSettings = TLSSettingsSimple True True True
45 changes: 0 additions & 45 deletions exec/Utils.hs

This file was deleted.

0 comments on commit c8ab5be

Please sign in to comment.