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

Commit 5c20afa

Browse files
iohk-bors[bot]rvlkarknuMichael HueschenCodiePP
committed
Merge #3972
3972: Cherry-picks from release/2.0.0 branch to develop r=rvl a=rvl These are cherry-picks of the PRs: #3811 #3816 #3817 #3831 #3846 #3867 #3879 #3883 #3919 #3934 #3936 #3946 #3962. Co-authored-by: Rodney Lorrimar <[email protected]> Co-authored-by: Karl Knutsson <[email protected]> Co-authored-by: Michael Hueschen <[email protected]> Co-authored-by: Alexander Diemand <[email protected]> Co-authored-by: KtorZ <[email protected]> Co-authored-by: Rupert Horlick <[email protected]> Co-authored-by: Luke Nadur <[email protected]> Co-authored-by: Jordan Millar <[email protected]> Co-authored-by: Marcin Szamotulski <[email protected]> Co-authored-by: Samuel Leathers <[email protected]> Co-authored-by: Jean-Christophe Mincke <[email protected]>
2 parents 1e04867 + fecd90d commit 5c20afa

File tree

10 files changed

+240
-49
lines changed

10 files changed

+240
-49
lines changed

CHANGELOG.md

+211-25
Large diffs are not rendered by default.

default.nix

+2-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,8 @@ let
286286
cardano-sl-tools-post-mortem
287287
cardano-sl-util
288288
cardano-sl-x509
289-
cardano-wallet;
289+
cardano-wallet
290+
cardano-wallet-static;
290291
inherit (self.haskellPackages)
291292
cardano-report-server; }
292293
# nix-tools setup

docs/how-to/build-cardano-sl-and-daedalus-from-source-code.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,14 @@ NOTE: the various other Cardano components can be obtained through other attribu
6666
- `cardano-sl-tools`:
6767
- `cardano-analyzer`, `cardano-dht-keygen`, `cardano-genupdate`, `cardano-keygen`, `cardano-launcher`, `cardano-addr-convert`, `cardano-cli-docs`, `cardano-block-gen`, `cardano-post-mortem`
6868
- `cardano-wallet-static`:
69-
- `cardano-node`, `cardano-swagger`
69+
- `cardano-node`, `cardano-generate-swagger-file`
7070

7171
In general, for any given cabal `PACKAGE` provided by Cardano, there is a
72-
corresponding Nix attribute for it -- `PACKAGE`, and sometimes, in case of
73-
packages providing executables, the `PACKAGE-static` also provides a
74-
statically-linked variation.
72+
corresponding Nix attribute for it -- `PACKAGE`.
73+
In the case of packages with executables, the `PACKAGE-static`
74+
attribute provides a variation with only the executables, with Haskell
75+
dependencies statically linked (system dependencies dynamically
76+
linked).
7577

7678
## Stack with Nix for system libraries (mixed mode)
7779

explorer/frontend/src/Explorer/View/Footer.purs

+6-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import Explorer.I18n.Lenses (footer, fooCardanoOpenSource, fooCardanoHub
1313
, fooDaedalusPlatform, fooWhyCardano, fooCardanoRoadmap, fooCardanoReddit, fooCardanoCommunity
1414
, fooIOHK, fooIOHKBlog, fooIOHKYoutube, fooTwitter, fooProject, fooFoundation
1515
, fooLearnMore, fooProtocol) as I18nL
16-
import Explorer.Lenses.State (lang)
16+
import Explorer.Lenses.State (lang, testnet)
1717
import Explorer.Types.Actions (Action(..))
1818
import Explorer.Types.State (State)
1919
import Explorer.Util.Config (commitHash, version)
@@ -27,8 +27,10 @@ import Text.Smolder.Markup (text) as S
2727

2828
footerView :: State -> P.HTML Action
2929
footerView state =
30-
let lang' = state ^. lang in
31-
S.div ! S.className "explorer-footer" $ do
30+
let lang' = state ^. lang
31+
footerHiddenClazz = if (state ^. testnet) then " hide" else ""
32+
in
33+
S.div ! S.className ("explorer-footer" <> footerHiddenClazz) $ do
3234
S.div ! S.className "explorer-footer__top" $ do
3335
S.div ! S.className "explorer-footer__container" $ do
3436
S.div ! S.className "explorer-footer__top--content" $ do
@@ -141,7 +143,7 @@ navItemsLeft lang =
141143
, link: "https://cardanoroadmap.com"
142144
}
143145
, { label: translate (I18nL.footer <<< I18nL.fooCardanoTestnet) lang
144-
, link: "https://tada.iohk.io"
146+
, link: "https://testnet.iohkdev.io"
145147
}
146148
, { label: translate (I18nL.footer <<< I18nL.fooCardanoSource) lang
147149
, link: "https://github.com/input-output-hk/cardano-sl"

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
@@ -20,6 +16,7 @@ library
2016
, QuickCheck
2117
, aeson
2218
, bytestring
19+
, cardano-sl-client
2320
, cardano-sl-core
2421
, cardano-sl-crypto
2522
, cardano-sl-util

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

lib/configuration.yaml

+7-7
Original file line numberDiff line numberDiff line change
@@ -14929,7 +14929,7 @@ testnet_wallet: &testnet_wallet
1492914929
<<: *testnet_full
1493014930
update: &testnet_wallet_update
1493114931
applicationName: csl-daedalus
14932-
applicationVersion: 1
14932+
applicationVersion: 4
1493314933
lastKnownBlockVersion:
1493414934
bvMajor: 0
1493514935
bvMinor: 0
@@ -14973,30 +14973,30 @@ mainnet_dryrun_wallet_win64: &mainnet_dryrun_wallet_win64
1497314973
<<: *mainnet_dryrun_full
1497414974
update:
1497514975
applicationName: csl-daedalus
14976-
applicationVersion: 16
14976+
applicationVersion: 18
1497714977
lastKnownBlockVersion:
1497814978
bvMajor: 0
14979-
bvMinor: 1
14979+
bvMinor: 2
1498014980
bvAlt: 0
1498114981

1498214982
mainnet_dryrun_wallet_macos64: &mainnet_dryrun_wallet_macos64
1498314983
<<: *mainnet_dryrun_full
1498414984
update:
1498514985
applicationName: csl-daedalus
14986-
applicationVersion: 16
14986+
applicationVersion: 18
1498714987
lastKnownBlockVersion:
1498814988
bvMajor: 0
14989-
bvMinor: 1
14989+
bvMinor: 2
1499014990
bvAlt: 0
1499114991

1499214992
mainnet_dryrun_wallet_linux64: &mainnet_dryrun_wallet_linux64
1499314993
<<: *mainnet_dryrun_full
1499414994
update:
1499514995
applicationName: csl-daedalus
14996-
applicationVersion: 16
14996+
applicationVersion: 18
1499714997
lastKnownBlockVersion:
1499814998
bvMajor: 0
14999-
bvMinor: 1
14999+
bvMinor: 2
1500015000
bvAlt: 0
1500115001

1500215002
##############################################################################

log-configs/cluster.yaml

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@ rotation:
66

77
loggerTree:
88
severity: Debug+
9-
files:
10-
- node.log
119

1210
handlers:
1311
- { name: "JSON"
1412
, filepath: "node.json"
1513
, logsafety: SecretLogLevel
16-
, severity: Info
14+
, severity: Debug+
1715
, backend: FileJsonBE }
1816

nix/.stack.nix/cardano-sl-faucet.nix

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkgs/default.nix

+2
Original file line numberDiff line numberDiff line change
@@ -15360,6 +15360,7 @@ license = stdenv.lib.licenses.mit;
1536015360
, aeson
1536115361
, base
1536215362
, bytestring
15363+
, cardano-sl-client
1536315364
, cardano-sl-core
1536415365
, cardano-sl-crypto
1536515366
, cardano-sl-infra
@@ -15419,6 +15420,7 @@ libraryHaskellDepends = [
1541915420
aeson
1542015421
base
1542115422
bytestring
15423+
cardano-sl-client
1542215424
cardano-sl-core
1542315425
cardano-sl-crypto
1542415426
cardano-sl-mnemonic

0 commit comments

Comments
 (0)