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

Commit 608a712

Browse files
iohk-bors[bot]rvl
andcommitted
Merge #3934
3934: [DEVOPS-1172] faucet: Use OptimizeForHighThroughput grouping policy r=rvl a=rvl ## Description Fix faucet withdrawals which occasionally fail due to unavailable UTxO. ## Linked issue https://iohk.myjetbrains.com/youtrack/issue/DEVOPS-1172 Co-authored-by: Rodney Lorrimar <[email protected]>
2 parents e25fcd7 + 46dc932 commit 608a712

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-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

pkgs/default.nix

+2
Original file line numberDiff line numberDiff line change
@@ -16543,6 +16543,7 @@ license = stdenv.lib.licenses.mit;
1654316543
, base16-bytestring
1654416544
, bytestring
1654516545
, cardano-sl-chain
16546+
, cardano-sl-client
1654616547
, cardano-sl-core
1654716548
, cardano-sl-crypto
1654816549
, cardano-sl-infra
@@ -16610,6 +16611,7 @@ base
1661016611
base16-bytestring
1661116612
bytestring
1661216613
cardano-sl-chain
16614+
cardano-sl-client
1661316615
cardano-sl-core
1661416616
cardano-sl-crypto
1661516617
cardano-sl-util

0 commit comments

Comments
 (0)