Skip to content

Commit 4a30295

Browse files
iohk-bors[bot]dcouttsintricatedisassemblerJimbo4350
authored
Merge #569
569: Update to latest version of ouroboros-network and other deps r=deepfire a=dcoutts Most code changes due to ouroboros-network and cardano-ledger Closes #566 Co-authored-by: Duncan Coutts <[email protected]> Co-authored-by: Luke Nadur <[email protected]> Co-authored-by: Samuel Leathers <[email protected]> Co-authored-by: Jordan Millar <[email protected]> Co-authored-by: Marcin Szamotulski <[email protected]> Co-authored-by: Kosyrev Serge <[email protected]>
2 parents 8ae55fb + a376106 commit 4a30295

File tree

26 files changed

+315
-240
lines changed

26 files changed

+315
-240
lines changed

.buildkite/pipeline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ steps:
2828
# system: x86_64-linux
2929

3030
- label: 'stack-cabal-sync'
31-
command: 'nix-shell scripts/buildkite/stack-cabal-sync.nix --run scripts/buildkite/stack-cabal-sync.sh'
31+
command: 'nix-shell ./nix -A iohkNix.stack-cabal-sync-shell --run scripts/buildkite/stack-cabal-sync.sh'
3232
agents:
3333
system: x86_64-linux
3434

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,7 @@ test-ghcid: ## Run ghcid on test suites
3030
test-ghcid-nix: ## Run ghcid on test suites with Nix
3131
@ghcid --command="stack ghci --test --main-is $(PROJECT_NAME):test:$(PROJECT_NAME)-test --nix -j$(NUM_PROC)"
3232

33+
test-chairmans-cluster:
34+
@scripts/cluster-test.sh
35+
3336
.PHONY: stylish-haskell cabal-hashes ghcid ghcid-test run-test test-ghci test-ghcid help

benchmarking/cluster3nodes/genesis.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ protocol_magic=459045235
1313
n_poors=128
1414
n_delegates=3
1515
total_balance=8000000000000000
16-
delegate_share=900000000000000
16+
delegate_share=0.9
1717
avvm_entries=128
1818
avvm_entry_balance=10000000000000
1919
not_so_secret=2718281828

cabal.project

Lines changed: 58 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -13,29 +13,29 @@ package cardano-node
1313
source-repository-package
1414
type: git
1515
location: https://github.com/input-output-hk/cardano-base
16-
tag: eed4fc484366214831576eef0c7fe90d1d08c78b
17-
--sha256: 0h9vbs2bsx6pvb300vl66znwpkqn169pmvsl4pv8mn0sz8iw4pk6
16+
tag: 3c2791584d3f43aa18e9cc13c490239b4c3dcbd2
17+
--sha256: 1gk55jb9gk6c6h3bwwgbfyj8czx253p9kswcrcgmbiy99d8y9lx4
1818
subdir: binary
1919

2020
source-repository-package
2121
type: git
2222
location: https://github.com/input-output-hk/cardano-base
23-
tag: eed4fc484366214831576eef0c7fe90d1d08c78b
24-
--sha256: 0h9vbs2bsx6pvb300vl66znwpkqn169pmvsl4pv8mn0sz8iw4pk6
23+
tag: 3c2791584d3f43aa18e9cc13c490239b4c3dcbd2
24+
--sha256: 1gk55jb9gk6c6h3bwwgbfyj8czx253p9kswcrcgmbiy99d8y9lx4
2525
subdir: binary/test
2626

2727
source-repository-package
2828
type: git
2929
location: https://github.com/input-output-hk/cardano-base
30-
tag: eed4fc484366214831576eef0c7fe90d1d08c78b
31-
--sha256: 0h9vbs2bsx6pvb300vl66znwpkqn169pmvsl4pv8mn0sz8iw4pk6
30+
tag: 3c2791584d3f43aa18e9cc13c490239b4c3dcbd2
31+
--sha256: 1gk55jb9gk6c6h3bwwgbfyj8czx253p9kswcrcgmbiy99d8y9lx4
3232
subdir: cardano-crypto-class
3333

3434
source-repository-package
3535
type: git
3636
location: https://github.com/input-output-hk/cardano-base
37-
tag: eed4fc484366214831576eef0c7fe90d1d08c78b
38-
--sha256: 0h9vbs2bsx6pvb300vl66znwpkqn169pmvsl4pv8mn0sz8iw4pk6
37+
tag: 3c2791584d3f43aa18e9cc13c490239b4c3dcbd2
38+
--sha256: 1gk55jb9gk6c6h3bwwgbfyj8czx253p9kswcrcgmbiy99d8y9lx4
3939
subdir: slotting
4040

4141
source-repository-package
@@ -47,63 +47,63 @@ source-repository-package
4747
source-repository-package
4848
type: git
4949
location: https://github.com/input-output-hk/cardano-ledger
50-
tag: c62e2eeba5756898cbf59732fccd6a83a4065c18
51-
--sha256: 04s2dp5dyikm2pxfphiyh429pckkg06dqx3sl4bbzvg6x5qfqvbn
50+
tag: 86f0cb4705f46307e4c89e7ef4c90142882cce54
51+
--sha256: 0sxklkwawyrsdvbb7hrg7r8sdiqc8ab2c5wdl1nb91zrvzs08z9m
5252
subdir: cardano-ledger
5353

5454
source-repository-package
5555
type: git
5656
location: https://github.com/input-output-hk/cardano-ledger
57-
tag: c62e2eeba5756898cbf59732fccd6a83a4065c18
58-
--sha256: 04s2dp5dyikm2pxfphiyh429pckkg06dqx3sl4bbzvg6x5qfqvbn
57+
tag: 86f0cb4705f46307e4c89e7ef4c90142882cce54
58+
--sha256: 0sxklkwawyrsdvbb7hrg7r8sdiqc8ab2c5wdl1nb91zrvzs08z9m
5959
subdir: crypto
6060

6161
source-repository-package
6262
type: git
6363
location: https://github.com/input-output-hk/cardano-ledger
64-
tag: c62e2eeba5756898cbf59732fccd6a83a4065c18
65-
--sha256: 04s2dp5dyikm2pxfphiyh429pckkg06dqx3sl4bbzvg6x5qfqvbn
64+
tag: 86f0cb4705f46307e4c89e7ef4c90142882cce54
65+
--sha256: 0sxklkwawyrsdvbb7hrg7r8sdiqc8ab2c5wdl1nb91zrvzs08z9m
6666
subdir: cardano-ledger/test
6767

6868
source-repository-package
6969
type: git
7070
location: https://github.com/input-output-hk/cardano-ledger
71-
tag: c62e2eeba5756898cbf59732fccd6a83a4065c18
72-
--sha256: 04s2dp5dyikm2pxfphiyh429pckkg06dqx3sl4bbzvg6x5qfqvbn
71+
tag: 86f0cb4705f46307e4c89e7ef4c90142882cce54
72+
--sha256: 0sxklkwawyrsdvbb7hrg7r8sdiqc8ab2c5wdl1nb91zrvzs08z9m
7373
subdir: crypto/test
7474

7575
source-repository-package
7676
type: git
7777
location: https://github.com/input-output-hk/cardano-ledger-specs
78-
tag: f27e8b66a393f0b7da1893889dcea07da0fe4dec
79-
--sha256: 1f1r1vidnlyka800jpm9z2myrggasqyzw0aw97q8vw81sh72l51s
78+
tag: 318f5a1594a23aedadb3977ddd5a32230c8be4fe
79+
--sha256: 09zmg09v6r9jr1jl2xim29nc8g4ys2pjisbm66xj2409znn5n19q
8080
subdir: byron/chain/executable-spec
8181

8282
source-repository-package
8383
type: git
8484
location: https://github.com/input-output-hk/cardano-ledger-specs
85-
tag: f27e8b66a393f0b7da1893889dcea07da0fe4dec
86-
--sha256: 1f1r1vidnlyka800jpm9z2myrggasqyzw0aw97q8vw81sh72l51s
85+
tag: 318f5a1594a23aedadb3977ddd5a32230c8be4fe
86+
--sha256: 09zmg09v6r9jr1jl2xim29nc8g4ys2pjisbm66xj2409znn5n19q
8787
subdir: byron/ledger/executable-spec
8888

8989
source-repository-package
9090
type: git
9191
location: https://github.com/input-output-hk/cardano-ledger-specs
92-
tag: f27e8b66a393f0b7da1893889dcea07da0fe4dec
93-
--sha256: 1f1r1vidnlyka800jpm9z2myrggasqyzw0aw97q8vw81sh72l51s
92+
tag: 318f5a1594a23aedadb3977ddd5a32230c8be4fe
93+
--sha256: 09zmg09v6r9jr1jl2xim29nc8g4ys2pjisbm66xj2409znn5n19q
9494
subdir: byron/semantics/executable-spec
9595

9696
source-repository-package
9797
type: git
9898
location: https://github.com/input-output-hk/cardano-prelude
99-
tag: 00487726c4bc21b4744e59d913334ebfeac7d68e
100-
--sha256: 0v4fcq5kdd2r5dgwys8kv46ff33qp756n26ycxrca10wq14zkwm5
99+
tag: fa7a16291d3e93b068d9b13620fc81c88b5600f0
100+
--sha256: 1gaj8k5kjdkmnc0l569asc0fwxi0413v1r0piccg8kyscwvhvcwz
101101

102102
source-repository-package
103103
type: git
104104
location: https://github.com/input-output-hk/cardano-prelude
105-
tag: 00487726c4bc21b4744e59d913334ebfeac7d68e
106-
--sha256: 0v4fcq5kdd2r5dgwys8kv46ff33qp756n26ycxrca10wq14zkwm5
105+
tag: fa7a16291d3e93b068d9b13620fc81c88b5600f0
106+
--sha256: 1gaj8k5kjdkmnc0l569asc0fwxi0413v1r0piccg8kyscwvhvcwz
107107
subdir: test
108108

109109
source-repository-package
@@ -128,113 +128,120 @@ source-repository-package
128128
source-repository-package
129129
type: git
130130
location: https://github.com/input-output-hk/iohk-monitoring-framework
131-
tag: e67dcb9a97b688e90aa93481839f2d162ab34b53
131+
tag: 49b347d892d82dce23eb692722649cd8a1149406
132132
--sha256: 0m6sa0lrqzfxhq7v5ncimlkd869pnq53khgpkivk0izsy46kfrq6
133133
subdir: iohk-monitoring
134134

135135
source-repository-package
136136
type: git
137137
location: https://github.com/input-output-hk/iohk-monitoring-framework
138-
tag: e67dcb9a97b688e90aa93481839f2d162ab34b53
138+
tag: 49b347d892d82dce23eb692722649cd8a1149406
139139
--sha256: 0m6sa0lrqzfxhq7v5ncimlkd869pnq53khgpkivk0izsy46kfrq6
140140
subdir: contra-tracer
141141

142142
source-repository-package
143143
type: git
144144
location: https://github.com/input-output-hk/iohk-monitoring-framework
145-
tag: e67dcb9a97b688e90aa93481839f2d162ab34b53
145+
tag: 49b347d892d82dce23eb692722649cd8a1149406
146146
--sha256: 0m6sa0lrqzfxhq7v5ncimlkd869pnq53khgpkivk0izsy46kfrq6
147147
subdir: plugins/scribe-systemd
148148

149149
source-repository-package
150150
type: git
151151
location: https://github.com/input-output-hk/iohk-monitoring-framework
152-
tag: e67dcb9a97b688e90aa93481839f2d162ab34b53
152+
tag: 49b347d892d82dce23eb692722649cd8a1149406
153153
--sha256: 0m6sa0lrqzfxhq7v5ncimlkd869pnq53khgpkivk0izsy46kfrq6
154154
subdir: plugins/backend-aggregation
155155

156156
source-repository-package
157157
type: git
158158
location: https://github.com/input-output-hk/iohk-monitoring-framework
159-
tag: e67dcb9a97b688e90aa93481839f2d162ab34b53
159+
tag: 49b347d892d82dce23eb692722649cd8a1149406
160160
--sha256: 0m6sa0lrqzfxhq7v5ncimlkd869pnq53khgpkivk0izsy46kfrq6
161161
subdir: plugins/backend-editor
162162

163163
source-repository-package
164164
type: git
165165
location: https://github.com/input-output-hk/iohk-monitoring-framework
166-
tag: e67dcb9a97b688e90aa93481839f2d162ab34b53
166+
tag: 49b347d892d82dce23eb692722649cd8a1149406
167167
--sha256: 0m6sa0lrqzfxhq7v5ncimlkd869pnq53khgpkivk0izsy46kfrq6
168168
subdir: plugins/backend-ekg
169169

170170
source-repository-package
171171
type: git
172172
location: https://github.com/input-output-hk/iohk-monitoring-framework
173-
tag: e67dcb9a97b688e90aa93481839f2d162ab34b53
173+
tag: 49b347d892d82dce23eb692722649cd8a1149406
174174
--sha256: 0m6sa0lrqzfxhq7v5ncimlkd869pnq53khgpkivk0izsy46kfrq6
175175
subdir: plugins/backend-monitoring
176176

177177
source-repository-package
178178
type: git
179179
location: https://github.com/input-output-hk/iohk-monitoring-framework
180-
tag: e67dcb9a97b688e90aa93481839f2d162ab34b53
180+
tag: 49b347d892d82dce23eb692722649cd8a1149406
181181
--sha256: 0m6sa0lrqzfxhq7v5ncimlkd869pnq53khgpkivk0izsy46kfrq6
182182
subdir: tracer-transformers
183183

184184
source-repository-package
185185
type: git
186186
location: https://github.com/input-output-hk/ouroboros-network
187-
tag: 398004e1403367cc2a25c639eb6349d473e51b2d
188-
--sha256: 1x940w0sma3mhl4hfd937sp25hdl3migkl8zsyl92p59468218i9
187+
tag: 5f77e24c2263560ad58b9ba092c8cfed174675ae
188+
--sha256: 00bm1fa83lc6jgh36mwr4zymzg9hvmq68y2hm4klk8c8gn7vwqqb
189189
subdir: ouroboros-network
190190

191191
source-repository-package
192192
type: git
193193
location: https://github.com/input-output-hk/ouroboros-network
194-
tag: 398004e1403367cc2a25c639eb6349d473e51b2d
195-
--sha256: 1x940w0sma3mhl4hfd937sp25hdl3migkl8zsyl92p59468218i9
194+
tag: 5f77e24c2263560ad58b9ba092c8cfed174675ae
195+
--sha256: 00bm1fa83lc6jgh36mwr4zymzg9hvmq68y2hm4klk8c8gn7vwqqb
196196
subdir: io-sim
197197

198198
source-repository-package
199199
type: git
200200
location: https://github.com/input-output-hk/ouroboros-network
201-
tag: 398004e1403367cc2a25c639eb6349d473e51b2d
202-
--sha256: 1x940w0sma3mhl4hfd937sp25hdl3migkl8zsyl92p59468218i9
201+
tag: 5f77e24c2263560ad58b9ba092c8cfed174675ae
202+
--sha256: 00bm1fa83lc6jgh36mwr4zymzg9hvmq68y2hm4klk8c8gn7vwqqb
203203
subdir: ouroboros-network-testing
204204

205205
source-repository-package
206206
type: git
207207
location: https://github.com/input-output-hk/ouroboros-network
208-
tag: 398004e1403367cc2a25c639eb6349d473e51b2d
209-
--sha256: 1x940w0sma3mhl4hfd937sp25hdl3migkl8zsyl92p59468218i9
208+
tag: 5f77e24c2263560ad58b9ba092c8cfed174675ae
209+
--sha256: 00bm1fa83lc6jgh36mwr4zymzg9hvmq68y2hm4klk8c8gn7vwqqb
210210
subdir: ouroboros-consensus
211211

212212
source-repository-package
213213
type: git
214214
location: https://github.com/input-output-hk/ouroboros-network
215-
tag: 398004e1403367cc2a25c639eb6349d473e51b2d
216-
--sha256: 1x940w0sma3mhl4hfd937sp25hdl3migkl8zsyl92p59468218i9
215+
tag: 5f77e24c2263560ad58b9ba092c8cfed174675ae
216+
--sha256: 00bm1fa83lc6jgh36mwr4zymzg9hvmq68y2hm4klk8c8gn7vwqqb
217217
subdir: typed-protocols
218218

219219
source-repository-package
220220
type: git
221221
location: https://github.com/input-output-hk/ouroboros-network
222-
tag: 398004e1403367cc2a25c639eb6349d473e51b2d
223-
--sha256: 1x940w0sma3mhl4hfd937sp25hdl3migkl8zsyl92p59468218i9
224-
subdir: typed-protocols-cbor
222+
tag: 5f77e24c2263560ad58b9ba092c8cfed174675ae
223+
--sha256: 00bm1fa83lc6jgh36mwr4zymzg9hvmq68y2hm4klk8c8gn7vwqqb
224+
subdir: typed-protocols-examples
225225

226226
source-repository-package
227227
type: git
228228
location: https://github.com/input-output-hk/ouroboros-network
229-
tag: 398004e1403367cc2a25c639eb6349d473e51b2d
230-
--sha256: 1x940w0sma3mhl4hfd937sp25hdl3migkl8zsyl92p59468218i9
229+
tag: 5f77e24c2263560ad58b9ba092c8cfed174675ae
230+
--sha256: 00bm1fa83lc6jgh36mwr4zymzg9hvmq68y2hm4klk8c8gn7vwqqb
231+
subdir: ouroboros-network-framework
232+
233+
source-repository-package
234+
type: git
235+
location: https://github.com/input-output-hk/ouroboros-network
236+
tag: 5f77e24c2263560ad58b9ba092c8cfed174675ae
237+
--sha256: 00bm1fa83lc6jgh36mwr4zymzg9hvmq68y2hm4klk8c8gn7vwqqb
231238
subdir: network-mux
232239

233240
source-repository-package
234241
type: git
235242
location: https://github.com/input-output-hk/ouroboros-network
236-
tag: 398004e1403367cc2a25c639eb6349d473e51b2d
237-
--sha256: 1x940w0sma3mhl4hfd937sp25hdl3migkl8zsyl92p59468218i9
243+
tag: 5f77e24c2263560ad58b9ba092c8cfed174675ae
244+
--sha256: 00bm1fa83lc6jgh36mwr4zymzg9hvmq68y2hm4klk8c8gn7vwqqb
238245
subdir: io-sim-classes
239246

240247
source-repository-package

cardano-config/src/Cardano/Config/Types.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ newtype DelegationCertFile = DelegationCertFile
107107

108108
data SocketPath = SocketFile
109109
{ unSocket :: FilePath }
110-
deriving Show
110+
deriving (Eq, Ord, Show)
111111

112112
newtype SigningKeyFile = SigningKeyFile
113113
{ unSigningKey :: FilePath }

cardano-node/ChangeLog.md

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

3+
## 1.6.0 -- February 2020
4+
5+
### node changes
6+
- Improve node CLI for real protocol vs mock protocols (#297, #314, #318, #335)
7+
- Improve log output for normal block forging and errors (#537)
8+
- Improve log output for normal mempool events (#527, #538)
9+
- Remove redundant `--genesis-hash` flag from `cardano-cli` (#540)
10+
- Move benchmarking CLI commands to their own sub-group (#540)
11+
- Extend tx generator to be able to use the tx submission HTTP API (#549)
12+
- The "live view" now displays the node id (#534)
13+
- Report program version via logging and monitoring system (#542)
14+
- Disable SMP on ARM CPUs due to an RTS ARM SMP bug in GHC 8.6.x (#560)
15+
16+
### consensus changes
17+
- Fix bugs found by tests related to block number handling (#1578, #1584, #1589)
18+
- Better handling of the block number at the genesis (#1585, #1594, #1595, #1597)
19+
- Fix bugs found by other tests (#1543, #1547, #1559, #1562, #1511, #1544)
20+
- Fix bugs found by dual ledger tests (#1608, #1571, #1617, #1577)
21+
- Fix a number of EBB-related bugs (#1620, #1621, #1624, #1625)
22+
- Introduce more sophisticated mempool tests and fix bugs (#1301, #1565, #1599)
23+
- Add tests for unusual changes in wall clock time (#759, #1554, #1601)
24+
- Handle restarting after wall clock time has been moved back (#1550, #1563)
25+
- Use specific program exit codes for node chain db errors (#1201, #1541)
26+
- Revalidate chain db files after unclean shutdown (#1551, #1623, #1304, #1568)
27+
- Add ability to report mempool capacity in tracing (#1509, #1510)
28+
- Add better support for versioned network protocols (#1632)
29+
- Fix minor space leaks (#1602, #1605)
30+
31+
### ledger changes
32+
- Fix rare bug in validation of delegation certs in the mempool (#715, #716)
33+
- Fix a space leak (#717)
34+
- API refactoring (#722)
35+
- Move code from consensus that should be in the ledger library (#676)
36+
- Clean up LovelacePortion representation and API
37+
- Add generic derived JSON instances for downstream users
38+
- Switch to Apache 2.0 license
39+
40+
### network changes
41+
- New NTP client time check library for the wallet (#1327)
42+
- Rearrange and move modules between network libraries (#1561)
43+
- Minor bug fixes in Win32 async I/O code (#1573, #1576)
44+
- Improve `io-sim-classes` support for monad stacks (#1539)
45+
346
## 1.5.0 -- January 2020
447

548
### node changes

0 commit comments

Comments
 (0)