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

Commit 91522ff

Browse files
committed
[DEVOPS-1172] faucet: Use OptimizeForHighThroughput grouping policy
1 parent e25fcd7 commit 91522ff

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

faucet/cardano-sl-faucet.cabal

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
-- This file has been generated from package.yaml by hpack version 0.18.1.
2-
--
3-
-- see: https://github.com/sol/hpack
4-
51
name: cardano-sl-faucet
62
version: 2.0.0
73
description: Cardano SL - faucet
@@ -22,6 +18,7 @@ library
2218
, aeson-pretty
2319
, base16-bytestring
2420
, bytestring
21+
, cardano-sl-client
2522
, cardano-sl-core
2623
, cardano-sl-crypto
2724
, cardano-sl-chain

faucet/src/Cardano/WalletClient.hs

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import qualified Data.ByteArray as BA
2121
import Data.ByteString (ByteString)
2222
import Data.List.NonEmpty (NonEmpty (..))
2323
import Data.Text.Strict.Lens (utf8)
24+
import Pos.Client.Txp.Util (InputSelectionPolicy(..))
2425
import Pos.Core (Address (..), Coin (..))
2526
import Pos.Crypto.Signing (PassPhrase)
2627
import System.Random
@@ -49,7 +50,8 @@ withdraw addr = withSublogger "WalletClient.withdraw" $ do
4950
q <- view feWithdrawalQ
5051
let paymentDist = (V1.PaymentDistribution addr coin :| [])
5152
sp = spendingPassword <&> view (re utf8 . to hashPwd . to V1)
52-
payment = Payment paymentSource paymentDist Nothing sp
53+
gp = Just (V1 OptimizeForHighThroughput)
54+
payment = Payment paymentSource paymentDist gp sp
5355
eRes <- liftIO $ sendToQueue q payment
5456
case eRes of
5557
Left e -> do

0 commit comments

Comments
 (0)