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

[DEVOPS-1172] faucet: Use OptimizeForHighThroughput grouping policy #3934

Merged
merged 2 commits into from
Dec 6, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions faucet/cardano-sl-faucet.cabal
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
-- This file has been generated from package.yaml by hpack version 0.18.1.
--
-- see: https://github.com/sol/hpack

name: cardano-sl-faucet
version: 2.0.0
description: Cardano SL - faucet
Expand All @@ -22,6 +18,7 @@ library
, aeson-pretty
, base16-bytestring
, bytestring
, cardano-sl-client
, cardano-sl-core
, cardano-sl-crypto
, cardano-sl-chain
Expand Down
4 changes: 3 additions & 1 deletion faucet/src/Cardano/WalletClient.hs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import qualified Data.ByteArray as BA
import Data.ByteString (ByteString)
import Data.List.NonEmpty (NonEmpty (..))
import Data.Text.Strict.Lens (utf8)
import Pos.Client.Txp.Util (InputSelectionPolicy(..))
import Pos.Core (Address (..), Coin (..))
import Pos.Crypto.Signing (PassPhrase)
import System.Random
Expand Down Expand Up @@ -49,7 +50,8 @@ withdraw addr = withSublogger "WalletClient.withdraw" $ do
q <- view feWithdrawalQ
let paymentDist = (V1.PaymentDistribution addr coin :| [])
sp = spendingPassword <&> view (re utf8 . to hashPwd . to V1)
payment = Payment paymentSource paymentDist Nothing sp
gp = Just (V1 OptimizeForHighThroughput)
payment = Payment paymentSource paymentDist gp sp
eRes <- liftIO $ sendToQueue q payment
case eRes of
Left e -> do
Expand Down