Skip to content

Commit 8fe4614

Browse files
iohk-bors[bot]nc6deepfire
authored
Merge #2671
2671: Prepare 1.27.0 release. r=nc6 a=nc6 Co-authored-by: Nicholas Clarke <[email protected]> Co-authored-by: Kosyrev Serge <[email protected]> Co-authored-by: Nicholas Clarke <[email protected]>
2 parents e730ea8 + fb812c8 commit 8fe4614

File tree

21 files changed

+147
-59
lines changed

21 files changed

+147
-59
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ CLUSTER_PROFILE = default-mary
4343
CLUSTER_ARGS_EXTRA =
4444

4545
cluster-shell:
46-
nix-shell --max-jobs 8 --cores 0 --argstr clusterProfile ${CLUSTER_PROFILE} --arg 'autoStartCluster' true --arg 'useCabalRun' true
46+
nix-shell --max-jobs 8 --cores 0 --argstr clusterProfile ${CLUSTER_PROFILE} --arg 'autoStartCluster' true
4747

4848
cluster-shell-dev:
49-
nix-shell --max-jobs 8 --cores 0 --argstr clusterProfile ${CLUSTER_PROFILE} --arg 'autoStartCluster' true --arg 'useCabalRun' true --arg 'workbenchDevMode' true
49+
nix-shell --max-jobs 8 --cores 0 --argstr clusterProfile ${CLUSTER_PROFILE} --arg 'autoStartCluster' true --arg 'workbenchDevMode' true
5050

5151
cluster-shell-trace: CLUSTER_ARGS_EXTRA = --trace
5252
large-state-cluster-shell-trace: CLUSTER_ARGS_EXTRA = --trace

cardano-api/ChangeLog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog for cardano-api
22

3+
## 1.27 -- April 2021
4+
5+
- Add initial support for the ledger state and folding over blocks to the API.
6+
(#2633)
7+
38
## 1.26.1 -- March 2021
49

510
- The cardano-submit-api now takes transactions encoded as CBOR rather than

cardano-api/cardano-api.cabal

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cabal-version: 2.4
22

33
name: cardano-api
4-
version: 1.26.1
4+
version: 1.27.0
55
description: The cardano api
66
author: IOHK
77
maintainer: [email protected]
@@ -114,7 +114,6 @@ library
114114
, formatting
115115
, iproute
116116
, memory
117-
, mtl
118117
, network
119118
, nothunks
120119
, ouroboros-consensus

cardano-cli/ChangeLog.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
# Changelog for cardano-cli
22

3+
## 1.27 -- April 2021
4+
5+
- The query tip now also returns the era (e.g. Shelley, Allegra, Alonzo).
6+
(#2561, #2562, #2598)
7+
- The `address build` command now incorporates the functionality of the script
8+
address build command, which is now deprecated. (#2486, #2587)
9+
- Add additional commands for creating MIR certificates to the CLI. This
10+
supports the ability to transfer funds to the treasury for Catalyst projects.
11+
(#2503)
12+
- The transaction view command now additionally shows detailed of minted
13+
non-native tokens. (#2550)
14+
- Removed support for Byron addresses using the Bech32 encoding. The only
15+
supported way to use Byron-era addresses is through a file, using the text
16+
envelope format. (#2605)
17+
- Add a new command which computes the minimum ADA value/deposit for a
18+
multi-asset value. (#2612)
19+
- Add two new query commands:
20+
- `query stake-snapshot` allows querying the three stake snapshots for a given
21+
stake pool.
22+
- `query pool-params` returns the current and future parameters, as well as
23+
the retiring information.
24+
(#2560)
25+
- Updated the CLI reference documentation. (#2665)
26+
327
## 1.26.1 -- March 2021
428
- It's no longer necessary to specify the era when making a CLI query. When not
529
specified, the current era will be used as a default. (#2470)

cardano-cli/cardano-cli.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cabal-version: 2.4
22

33
name: cardano-cli
4-
version: 1.26.1
4+
version: 1.27.0
55
description: The Cardano command-line interface.
66
author: IOHK
77
maintainer: [email protected]

cardano-node-chairman/cardano-node-chairman.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cabal-version: 2.4
22

33
name: cardano-node-chairman
4-
version: 1.26.1
4+
version: 1.27.0
55
description: The cardano full node
66
author: IOHK
77
maintainer: [email protected]

cardano-node/ChangeLog.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,63 @@
11
# Changelog for cardano-node
22

3+
## 1.27 -- April 2021
4+
5+
### node changes
6+
7+
- Add an additional GC heap metric to RTS. (#2592)
8+
- Add details about registering relays on-chain to SPO documentation. (#2591)
9+
- Improved installation documentation. (#2624)
10+
- Preparatory support for Alonzo. (#2547)
11+
- Preparatory support for Voltaire. (#2498)
12+
- Add a docker image option for downloading cardano-node. (#2632)
13+
- Miscellaneous internal improvements. (#2644, #2645, #2646)
14+
15+
### consensus changes
16+
17+
- Some preparation for upcoming work on Voltaire. (#2978)
18+
- Drop support for GHC 8.6.5. Note that support had already been dropped in the
19+
node. (#3004)
20+
- Introduce an option to configure the snapshot interval. This will primarily be
21+
used by downstream teams for testing and benchmarking. (#2966, #3092)
22+
- Preparatory work for the implementation of Ouroboros Genesis. (#3002)
23+
- Test varying stake distributions in the automated tests. (#3072)
24+
- Add a peer label to chain sync client traces, allowing us to view which peer
25+
supplied which header and when. (#3091)
26+
- Provide the ledger with the ability to perform slot to time conversion. This
27+
will be needed for Plutus scripts in the upcoming Alonzo release. (#3036, #3098)
28+
### ledger changes
29+
30+
- Work on implementing the upcoming Alonzo era. (#2192, #2198, #2200, #2204,
31+
#2210, #2211, #2212, #2214, #2215, #2216, #2218, #2220, #2221, #2222, #2225,
32+
#2226, #2227, #2229, #2231, #2235, #2237, #2242, #2243, #2251, #2256, #2260,
33+
#2264)
34+
- Released the CDDL spec for Alonzo. (#2228)
35+
- Add an optional network ID field to the transaction body. This will only come
36+
into use in the Alonzo era. (#2219, #2254)
37+
- Define a cardano-ledger-core package containing era-independent primitives.
38+
(#2207)
39+
- Fixes to the ShelleyMA formal specification. (#2181)
40+
- Various internal refactorings and improvements. (#2191, #2202, #2206, #2217,
41+
#2233, #2247, #2257)
42+
- Fix a bug in reward update application which could have resulted in the wrong
43+
amount of funds being added to the treasury. (#2238)
44+
- Some work to reduce the extra CPU load at an epoch boundary, and reduce the
45+
resulting "pause" in normal operation. (#2240, #2241, #2250, #2262)
46+
- Added formal definitions for much of the crypto used to the Shelley spec.
47+
(#2236, #2252)
48+
- Expose AdaPots for use in downstream projects. (#2208)
49+
- Some Byron-era serialisation testing. (#2217)
50+
- Some preparation for upcoming work on Voltaire. (#2135)
51+
52+
### network changes
53+
54+
- Removed the deprecated 'KThxBye' message from the TxSubmission protocol.
55+
(#2238)
56+
- Introduce new representation for local root peers. This is in preparation for
57+
P2P support. (#3006)
58+
- Add a new KeepAlive codec that produces a valid CBOR encoding. (#3062)
59+
- Various internal updates and refactorings. (#3003, #3077)
60+
361
## 1.26.1 -- March 2021
462

563
### node changes

cardano-node/cardano-node.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cabal-version: 2.4
22

33
name: cardano-node
4-
version: 1.26.1
4+
version: 1.27.0
55
description: The cardano full node
66
author: IOHK
77
maintainer: [email protected]

default.nix

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ let
2626
inherit haskellPackages
2727
cardano-node cardano-node-profiled cardano-node-eventlogged
2828
cardano-cli db-converter cardano-ping
29-
scripts environments dockerImage submitApiDockerImage mkCluster bech32;
29+
scripts environments dockerImage submitApiDockerImage bech32;
3030

3131
nixosTests = recRecurseIntoAttrs nixosTests;
3232

@@ -51,8 +51,6 @@ let
5151
};
5252
};
5353

54-
profiles = (mkCluster customConfig).profilesJSON;
55-
5654
shell = import ./shell.nix {
5755
inherit pkgs;
5856
withHoogle = true;

flake.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
cardano-lib
2727
(final: prev: {
2828
customConfig = import ./custom-config.nix;
29-
workbenchConfig = import ./workbench-config.nix;
3029
gitrev = self.rev or "dirty";
3130
commonLib = lib
3231
// iohkNix.lib

nix/default.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
, customConfig ? import ./custom-config.nix
55
, sourcesOverride ? {}
66
, gitrev ? null
7-
, workbenchConfig ? import ../workbench-config.nix
87
}:
98
let
109
gitrev' = if gitrev == null
@@ -38,7 +37,7 @@ let
3837
++ [
3938
(pkgs: _: with pkgs; {
4039
gitrev = gitrev';
41-
inherit customConfig workbenchConfig;
40+
inherit customConfig;
4241

4342
inherit (iohkNix) cardanoLib;
4443
# commonLib: mix pkgs.lib with iohk-nix utils and our own:

nix/pkgs.nix

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ final: prev: with final;
6969
inherit (cardanoNodeHaskellPackages.ouroboros-consensus-byron.components.exes) db-converter;
7070
inherit (cardanoNodeHaskellPackages.network-mux.components.exes) cardano-ping;
7171

72-
mkCluster = cfg: callPackage ./supervisord-cluster cfg;
73-
7472
cabal = haskell-nix.tool compiler "cabal" {
7573
version = "latest";
7674
inherit (cardanoNodeProject) index-state;
@@ -117,7 +115,4 @@ final: prev: with final;
117115
};
118116

119117
clusterTests = import ./supervisord-cluster/tests { inherit pkgs; };
120-
121-
workbench = callPackage ./workbench workbenchConfig;
122-
inherit (workbench) runWorkbench runJq;
123118
}

nix/supervisord-cluster/default.nix

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ let
55
profileNameDefault = "default-mary";
66
in
77
{ pkgs
8+
, workbench
89
, lib
910
, bech32
1011
, basePort ? basePortDefault
@@ -29,7 +30,7 @@ let
2930
topologyForNode =
3031
{ profile, nodeSpec }:
3132
let inherit (nodeSpec) name i; in
32-
pkgs.runWorkbench "topology-${name}.json"
33+
workbench.runWorkbench "topology-${name}.json"
3334
(if nodeSpec.isProducer
3435
then "topology for-local-node ${toString i} ${profile.topology.files} ${toString basePort}"
3536
else "topology for-local-observer ${profile.name} ${profile.topology.files} ${toString basePort}");
@@ -140,7 +141,7 @@ EOF
140141
basePort;
141142
};
142143

143-
workbenchProfiles = pkgs.workbench.generateProfiles
144+
workbenchProfiles = workbench.generateProfiles
144145
{ inherit pkgs backend environment; };
145146
in
146147

@@ -156,7 +157,7 @@ let
156157
]
157158
## In dev mode, call the script directly:
158159
++ optionals (!workbenchDevMode)
159-
[ pkgs.workbench.workbench ];
160+
[ workbench.workbench ];
160161

161162
start = pkgs.writeScriptBin "start-cluster" ''
162163
set -euo pipefail
@@ -174,6 +175,8 @@ let
174175
175176
wb local assert-stopped
176177
178+
workbench-prebuild-executables || return 1
179+
177180
wb profile describe ${profileName}
178181
179182
${optionalString (stateDir != stateDirDefault)
@@ -190,8 +193,6 @@ let
190193
191194
ln -s ${profile.topology.files} "${stateDir}"/topology
192195
193-
workbench-prebuild-executables
194-
195196
genesis_args+=(
196197
## Positionals:
197198
${profile.JSON}
@@ -227,7 +228,7 @@ let
227228

228229
in
229230
{
230-
inherit (pkgs) workbench;
231+
inherit workbench;
231232
inherit (workbenchProfiles) profilesJSON;
232233
inherit profile stateDir start stop;
233234
}

nix/workbench/cardano-topology/cardano-topology.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cabal-version: 2.4
22

33
name: cardano-topology
4-
version: 1.26.1
4+
version: 1.27.0
55
description: A cardano topology generator
66
author: IOHK
77
maintainer: [email protected]

nix/workbench/default.nix

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ let
7171
'';
7272

7373
exeCabalOp = op: exe:
74-
toString [ "${cabal-install}/bin/cabal" "-v0" op "exe:${exe}" "--"];
74+
toString [ "${cabal-install}/bin/cabal" op "${exe}" "--"];
7575

7676
checkoutWbMode =
7777
if useCabalRun
@@ -97,18 +97,20 @@ let
9797
9898
${optionalString useCabalRun
9999
''
100+
./scripts/cabal-inside-nix-shell.sh
101+
100102
echo 'workbench: cabal-inside-nix-shell mode enabled, calling cardano-* via 'cabal run' (instead of using Nix store)' >&2
101103
102104
function cardano-cli() {
103-
${exeCabalOp "run" "cardano-cli"} "$@"
105+
${exeCabalOp "exec" "cardano-cli"} "$@"
104106
}
105107
106108
function cardano-node() {
107-
${exeCabalOp "run" "cardano-node"} "$@"
109+
${exeCabalOp "exec" "cardano-node"} "$@"
108110
}
109111
110112
function cardano-topology() {
111-
${exeCabalOp "run" "cardano-topology"} "$@"
113+
${exeCabalOp "exec" "cardano-topology"} "$@"
112114
}
113115
114116
export -f cardano-cli cardano-node cardano-topology
@@ -118,13 +120,14 @@ let
118120
function workbench-prebuild-executables() {
119121
${optionalString useCabalRun
120122
''
121-
echo -n "workbench: prebuilding executables:"
123+
echo -n "workbench: prebuilding executables (because of useCabalRun):"
122124
for exe in cardano-cli cardano-node cardano-topology
123125
do echo -n " $exe"
124-
$exe --help >/dev/null || true
126+
cabal -v0 build exe:$exe >/dev/null || return 1
125127
done
126-
''}
127128
echo
129+
''}
130+
true
128131
}
129132
export -f workbench-prebuild-executables
130133
@@ -153,6 +156,7 @@ let
153156
pkgs.callPackage ./profiles
154157
{ inherit
155158
pkgs
159+
runWorkbench runJq workbench
156160
backend
157161
environment
158162
profileName;

nix/workbench/profiles/default.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{ pkgs
2-
, runCommand, runJq, runWorkbench, writeText
2+
, runCommand, runWorkbench, runJq, workbench, writeText
33

44
## The backend is an attrset of AWS/supervisord-specific methods and parameters.
55
, backend
@@ -38,14 +38,14 @@ let
3838
inherit JSON value;
3939

4040
topology = pkgs.callPackage
41-
./topology.nix { inherit profile; };
41+
./topology.nix { inherit workbench profile; };
4242

4343
node-specs = pkgs.callPackage
44-
./node-specs.nix { inherit backend profile; };
44+
./node-specs.nix { inherit runWorkbench profile backend; };
4545

4646
inherit (pkgs.callPackage
4747
./node-services.nix
48-
{ inherit backend environment profile; })
48+
{ inherit runJq runWorkbench backend environment profile; })
4949
node-services;
5050
};
5151

nix/workbench/profiles/node-services.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{ pkgs
2+
, runJq, runWorkbench
23

34
## The backend is an attrset of AWS/supervisord-specific methods and parameters.
45
, backend
@@ -122,8 +123,6 @@ let
122123
};
123124
in eval.config.services.cardano-node;
124125

125-
inherit (pkgs) runJq runWorkbench;
126-
127126
##
128127
## node-services :: Map NodeName (NodeSpec, ServiceConfig, Service, NodeConfig, Script)
129128
##

0 commit comments

Comments
 (0)