Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Commit 0338836

Browse files
author
Michael Hueschen
committed
[DEVOPS-1131] Fix merge errors & compiler complaints
1 parent 7322f92 commit 0338836

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

lib/src/Pos/Launcher/Configuration.hs

+5-2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ module Pos.Launcher.Configuration
3131
, ccNode_L
3232
, ccWallet_L
3333
, ccReqNetMagic_L
34+
, ccTxValRules_L
3435

3536
, cfoFilePath_L
3637
, cfoKey_L
@@ -148,7 +149,8 @@ instance FromJSON Configuration where
148149
pure $ Configuration {..}
149150

150151
instance ToJSON Configuration where
151-
toJSON (Configuration genesis ntp update ssc dlg txp block node wallet reqnetmagic) = object [
152+
toJSON (Configuration genesis ntp update ssc dlg txp block node
153+
wallet reqNetMagic txValRules) = object [
152154
"genesis" .= genesis
153155
, "ntp" .= ntp
154156
, "update" .= update
@@ -158,7 +160,8 @@ instance ToJSON Configuration where
158160
, "block" .= block
159161
, "node" .= node
160162
, "wallet" .= wallet
161-
, "requiresNetworkMagic" .= reqnetmagic
163+
, "requiresNetworkMagic" .= reqNetMagic
164+
, "txValidationRules" .= txValRules
162165
]
163166

164167
data WalletConfiguration = WalletConfiguration

script-runner/common/BrickUI.hs

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import qualified Data.Text as T
1919
import qualified Data.Text.Lazy.Builder as T
2020
import qualified Data.Vector as V
2121
import Formatting
22-
import Universum hiding (HashMap, list, on, state, when)
22+
import Universum hiding (HashMap, list, on, state)
2323

2424
import Brick (App (App, appAttrMap, appChooseCursor, appDraw, appHandleEvent, appStartEvent),
2525
BrickEvent (AppEvent, VtyEvent), EventM, Next, Widget,
@@ -143,8 +143,8 @@ proposalUi state = do
143143
let
144144
renderProposal :: Either ConfirmedProposalState (UpId,ProposalState) -> Widget Name
145145
renderProposal (Left proposal) = renderUpdateProposalLabel (str "Confirmed: ") (cpsUpdateProposal proposal)
146-
renderProposal (Right (upid, PSUndecided prop)) = renderUpdateProposalLabel (str "Undecided: ") (upsProposal prop)
147-
renderProposal (Right (upid, PSDecided prop)) = renderUpdateProposalLabel (str "Decided: ") (upsProposal $ dpsUndecided prop)
146+
renderProposal (Right (_upid, PSUndecided prop)) = renderUpdateProposalLabel (str "Undecided: ") (upsProposal prop)
147+
renderProposal (Right (_upid, PSDecided prop)) = renderUpdateProposalLabel (str "Decided: ") (upsProposal $ dpsUndecided prop)
148148
let
149149
renderProposalState :: (UpId, ProposalState) -> Widget Name
150150
renderProposalState (upid, PSDecided prop) = do

script-runner/common/OrphanedLenses.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{-# LANGUAGE NoImplicitPrelude #-}
22
{-# LANGUAGE TemplateHaskell #-}
33

4-
module OrphanedLenses where
4+
module OrphanedLenses () where
55

66
import Control.Lens (makeLensesWith)
77

script-runner/common/PocMode.hs

+2-5
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ import Data.Default (Default (def))
4949
import qualified Data.Map as Map
5050
import Prelude (show)
5151

52-
import BrickUITypes (CustomEvent)
53-
5452
import Pos.Chain.Block (HasSlogContext (slogContext),
5553
HasSlogGState (slogGState))
5654
import Pos.Chain.Genesis as Genesis (Config)
@@ -59,8 +57,7 @@ import Pos.Client.KeyStorage (MonadKeys (modifySecret),
5957
MonadKeysRead (getSecret), getSecretDefault,
6058
modifySecretDefault)
6159
import Pos.Context (HasNodeContext (nodeContext))
62-
import Pos.Core (SlotCount, SlotId)
63-
import Pos.Core (HasPrimaryKey (primaryKey))
60+
import Pos.Core (HasPrimaryKey (primaryKey), SlotCount, SlotId)
6461
import Pos.Core.JsonLog (CanJsonLog (jsonLog))
6562
import Pos.Core.Reporting (HasMisbehaviorMetrics (misbehaviorMetrics),
6663
MonadReporting (report))
@@ -263,6 +260,6 @@ instance MonadKeys PocMode where
263260
type instance MempoolExt PocMode = EmptyMempoolExt
264261

265262
instance MonadTxpLocal PocMode where
266-
txpNormalize pm = withReaderT _acRealModeContext . txNormalize pm
263+
txpNormalize pm tvr = withReaderT _acRealModeContext . txNormalize pm tvr
267264
txpProcessTx genesisConfig txpConfig = withReaderT _acRealModeContext . txProcessTransaction genesisConfig txpConfig
268265

0 commit comments

Comments
 (0)