Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to cardano-node 1.35-rc2 #3280

Merged
merged 72 commits into from
Jun 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
272d1dc
Bump cardano-node, use aeson 2, and use cabal as source of truth
Anviking Jun 10, 2022
983eafb
Try increasing node-to-client version
Anviking May 31, 2022
b2720d3
adjust Primitive.Types.Tx module
paweljakubas Jun 2, 2022
abd32e1
fromBabbageTxBodyAndAux - backbone
paweljakubas Jun 2, 2022
f2cc90e
fromBabbageValidatedTx
paweljakubas Jun 2, 2022
bea4c32
fromBabbageTx
paweljakubas Jun 2, 2022
e8ee78b
fromBabbageBlock
paweljakubas Jun 2, 2022
e4fbf0d
numberOfTransactionsInBlock
paweljakubas Jun 2, 2022
c4847f6
handle collateralOutput
paweljakubas Jun 2, 2022
e51bc23
shelley unit test fixes - part 1
paweljakubas Jun 2, 2022
2d3c19a
Tweak error message in toPaymentHash
Anviking Jun 2, 2022
131a7ac
some more fillings
paweljakubas Jun 2, 2022
25291b2
towards shelley core unit tests - part 1
paweljakubas Jun 2, 2022
c6aba89
Bump io-sim to fix readTVar issue
Anviking Jun 3, 2022
39e5ccb
Hack: tweak deserialisation preference to make integration tests pass
Anviking Jun 3, 2022
df4588c
Use Plutus.defaultCostModelParams in balanceTx tests
Anviking Jun 3, 2022
a359d24
Restrict persistent to version < 2.13.3.4
sevanspowell Jun 6, 2022
ac70467
Upgrade version of cardano-addresses
sevanspowell Jun 6, 2022
b208f55
Make autoconf tools + libsecp256k1 available in non-Nix cabal build
sevanspowell Jun 6, 2022
1f78c7a
fix genTxIx and genCertIx
paweljakubas Jun 6, 2022
4d056e3
try with genSlotNo
paweljakubas Jun 6, 2022
e9d5863
adjust ApiNetworkParameters in swagger
paweljakubas Jun 6, 2022
0e83c77
Upgrade version of cardano-addresses - Stack.yaml
sevanspowell Jun 7, 2022
7545e4f
Eliminate implicit imports from `Cardano.Api.GenSpec`.
jonathanknowles Jun 7, 2022
7034966
Bump haskell.nix
Anviking Jun 7, 2022
2080bf0
LoggingSpec fix
paweljakubas Jun 7, 2022
8582d47
reuse fromLedgerPParams from cardano-api - part 1
paweljakubas Jun 3, 2022
7ca11a4
clean fromLedgerAlonzoPParams
paweljakubas Jun 3, 2022
cfb48d9
reuse fromLedgerPParams from cardano-api - part 2
paweljakubas Jun 3, 2022
272eb1a
assignScriptRedeemers refactoring
paweljakubas Jun 3, 2022
ea26d90
libsodium.dll is now automatically installed
sevanspowell May 24, 2022
5a73357
Regenerate golden JSON files for all API types.
jonathanknowles Jun 8, 2022
bf60a34
Update node to 1.35.0-rc2
Anviking Jun 7, 2022
ba6f9b4
handle translation error
paweljakubas Jun 7, 2022
7fcaa0c
Bump haskell.nix again
Anviking Jun 8, 2022
e47526a
Add module `Cardano.Ledger.Credential.Safe`.
jonathanknowles Jun 8, 2022
f55a693
Add `genSlotNo32` and use it within `genPtr`.
jonathanknowles Jun 8, 2022
c44240c
Add `genSlotNo32Coverage` and use it in `genPtrCoverage`.
jonathanknowles Jun 8, 2022
6aab92b
Add roundtrip test for `safePtr` and `safeUnwrapPtr`.
jonathanknowles Jun 8, 2022
49a9ab3
Miscellaneous import fixes.
jonathanknowles Jun 8, 2022
799e97f
Add statement of properties to `Cardano.Ledger.Credential.Safe`.
jonathanknowles Jun 8, 2022
05bca3f
Fix haskell-language-server build
sevanspowell Jun 9, 2022
c8013e5
Update pingPong_2/golden file: fee seems to be smaller
Anviking Jun 9, 2022
5039323
rebase fixup: remove redundant Small import in Cardano.Api.Gen
Anviking Jun 10, 2022
74fc715
rebase fixup: aeson 2 changes in Blockfrost module
Anviking Jun 10, 2022
a753f21
tmp: disable nix regeneration of sha256map
Anviking Jun 10, 2022
a51b6c5
tweak formatting
Anviking Jun 10, 2022
7478b20
fix hlint
Anviking Jun 10, 2022
867bfa2
Try updating haskell.nix
Anviking Jun 10, 2022
7dc6420
Try to fix nix `error: attribute 'defaultPackage' missing`
Anviking Jun 10, 2022
5c6d4c4
tmp: try removing libsodium-vrf addition from nix
Anviking Jun 12, 2022
f01febb
haskell.nix changes
sevanspowell Jun 13, 2022
f903038
try setting reinstallableLibGhc to true
Anviking Jun 13, 2022
99d6d14
Remove explicit emanote input from flake.nix
Anviking Jun 13, 2022
840c0ce
Regenerate cli goldens (only whitespace changes)
Anviking Jun 13, 2022
7c6b18a
Add -fexternal-interpreter GHC option to plutus-core when profiling
sevanspowell Jun 14, 2022
4ae6e2c
Remove now redundant dependency on hw-aeson
Anviking Jun 14, 2022
38aa495
Remove unused ErrAssignRedeemersPastHorizon for now
Anviking Jun 14, 2022
64d58ab
Re-format a few lines which are too long
Anviking Jun 14, 2022
b7e9e58
Apply suggestion: use \case in shelleyBasedToCardanoEra
Anviking Jun 14, 2022
1562767
hie-bios: Set reinstallableLibGhc to false
sevanspowell Jun 15, 2022
4cbf834
Workaround hie-direnv.yaml errors
Anviking Jun 15, 2022
4ff9c77
Miscellanous formatting fixes.
jonathanknowles Jun 16, 2022
679f464
Explicitly import constructors for `BasicFailure`.
jonathanknowles Jun 16, 2022
035fd11
Use `TranslationError` within `ErrAssignRedeemersTranslationError`.
jonathanknowles Jun 16, 2022
604f06e
Link usage of PackageImports to ticket explaining reasoning
sevanspowell Jun 16, 2022
dd6e174
Try bumping haskell.nix
sevanspowell Jun 16, 2022
b5859ff
Update node version in readme compatibility matrix
Anviking Jun 16, 2022
8eea1d3
Replace nix/sha256map and stack.yaml with `checkCabalProject`
Anviking Jun 13, 2022
0902c88
Improve TODOs and linking to tasks in Api.Gen module
Anviking Jun 16, 2022
896c068
Minimize API changes w.r.t `TimeTranslationPastHorizon`
Anviking Jun 16, 2022
0129872
Merge pull request #3328 from input-output-hk/anviking/ADP-1744/compl…
sevanspowell Jun 17, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ steps:
key: nix
commands:
- './nix/regenerate.sh'
- 'nix build .#checkStackProject -o check-stack-project.sh && ./check-stack-project.sh'
agents:
system: x86_64-linux

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ See **Installation Instructions** for each available [release](https://github.co
>
> | cardano-wallet | cardano-node (compatible versions) | SMASH (compatible versions)
> | --- | --- | ---
> | `master` branch | [1.34.1](https://github.com/input-output-hk/cardano-node/releases/tag/1.34.1) | [1.6.1](https://github.com/input-output-hk/smash/releases/tag/1.6.1)
> | `master` branch | [1.35.0-rc2](https://github.com/input-output-hk/cardano-node/releases/tag/1.35.0-rc2) | [1.6.1](https://github.com/input-output-hk/smash/releases/tag/1.6.1)
> | [v2022-05-27](https://github.com/input-output-hk/cardano-wallet/releases/tag/v2022-05-27) | [1.34.1](https://github.com/input-output-hk/cardano-node/releases/tag/1.34.1) | [1.6.1](https://github.com/input-output-hk/smash/releases/tag/1.6.1)
> | [v2022-04-27](https://github.com/input-output-hk/cardano-wallet/releases/tag/v2022-04-27) | [1.34.1](https://github.com/input-output-hk/cardano-node/releases/tag/1.34.1) | [1.6.1](https://github.com/input-output-hk/smash/releases/tag/1.6.1)
> | [v2022-01-18](https://github.com/input-output-hk/cardano-wallet/releases/tag/v2022-01-18) | [1.33.0](https://github.com/input-output-hk/cardano-node/releases/tag/1.33.0) | [1.6.1](https://github.com/input-output-hk/smash/releases/tag/1.6.1)
Expand Down
129 changes: 97 additions & 32 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
--
--------------------------------------------------------------------------------

index-state: 2022-03-29T23:10:49Z
index-state: 2022-05-18T00:00:00Z
with-compiler: ghc-8.10.7

packages:
Expand All @@ -53,48 +53,60 @@ packages:
, lib/shelley/
, lib/strict-non-empty-containers/

-- Using RDRAND instead of /dev/urandom as an entropy source for key
-- generation is dubious. Set the flag so we use /dev/urandom by default.
package cryptonite
flags: -support_rdrand

-- Using a fork until our patches can be merged upstream

-- TODO: ADP-1713
source-repository-package
type: git
location: https://github.com/biocad/servant-openapi3
tag: 4165b837d3a71debd1059c3735460075840000b5
--sha256: 1dngrr353kjhmwhn0b289jzqz5rf32llwcv79zcyq15ldpqpbib9

-- TODO: ADP-1713
source-repository-package
type: git
location: https://github.com/paolino/openapi3
tag: c30d0de6875d75edd64d1aac2272886528bc492d
--sha256: 0b0fzj5vrnfrc8qikabxhsnp4p8lrjpssblbh2rb7aji5hzzfli9

source-repository-package
type: git
location: https://github.com/input-output-hk/optparse-applicative
tag: 7497a29cb998721a9068d5725d49461f2bba0e7a
--sha256: 1gvsrg925vynwgqwplgjmp53vj953qyh3wbdf34pw21c8r47w35r

source-repository-package
type: git
location: https://github.com/input-output-hk/Win32-network
tag: 3825d3abf75f83f406c1f7161883c438dac7277d
--sha256: 19wahfv726fa3mqajpqdqhnl9ica3xmf68i254q45iyjcpj1psqx

source-repository-package
type: git
location: https://github.com/input-output-hk/cardano-addresses
tag: ba8390504b6613957b73bf8d0d2aab1a989f104d
tag: b9f424cc64459a95a2f190a1839ec9bc94cc778c
--sha256: 0iqzppqqb1xqnp55yd0xil9qfy8fz8474w834nmfg2w692bynyb9
subdir: command-line
core

source-repository-package
type: git
location: https://github.com/input-output-hk/bech32
tag: ab61914443e5f53624d3b2995767761b3f68e576
--sha256: 0isqh5s6rdhmqa3jhvc32zb3kvzy149hmzddx1ld9f9jhls4f3wg
subdir: bech32
bech32-th

source-repository-package
type: git
location: https://github.com/input-output-hk/cardano-base
tag: 41545ba3ac6b3095966316a99883d678b5ab8da8
tag: 631cb6cf1fa01ab346233b610a38b3b4cba6e6ab
--sha256: 0944wg2nqazmhlmsynwgdwxxj6ay0hb9qig9l128isb2cjia0hlp
subdir:
base-deriving-via
binary
Expand All @@ -111,11 +123,13 @@ source-repository-package
type: git
location: https://github.com/input-output-hk/cardano-crypto
tag: f73079303f663e028288f9f4a9e08bcca39a923e
--sha256: 1n87i15x54s0cjkh3nsxs4r1x016cdw1fypwmr68936n3xxsjn6q

source-repository-package
type: git
location: https://github.com/input-output-hk/plutus
tag: fc5fe94d3d9525d032bcbc79ff0e1ebcfd8ef143
tag: d24a7540e4659b57ce2ab25dadb968991e232191
--sha256: 15glaghkaa5kh1ayfkw2jahkqq3955kmfzplmb210gvrlnlghlaa
subdir:
plutus-core
plutus-ledger-api
Expand All @@ -129,19 +143,24 @@ source-repository-package
type: git
location: https://github.com/input-output-hk/ekg-forward
tag: 297cd9db5074339a2fb2e5ae7d0780debb670c63
--sha256: 1zcwry3y5rmd9lgxy89wsb3k4kpffqji35dc7ghzbz603y1gy24g

source-repository-package
type: git
location: https://github.com/input-output-hk/cardano-config
tag: 1646e9167fab36c0bff82317743b96efa2d3adaa
--sha256: 11kf65x38laqhwspsl28j2x5a4rky8mfr6356w0li5g53sfykmjc

source-repository-package
type: git
location: https://github.com/input-output-hk/cardano-ledger
tag: 1a9ec4ae9e0b09d54e49b2a40c4ead37edadcce5
tag: e290bf8d0ea272a51e9acd10adc96b4e12e00d37
--sha256: 1pmdg80a8irrqgdhbp46a9jx628mjbrj0k89xv5nb5dy37z5ig5f
subdir:
eras/alonzo/impl
eras/alonzo/test-suite
eras/babbage/impl
eras/babbage/test-suite
eras/byron/chain/executable-spec
eras/byron/crypto
eras/byron/crypto/test
Expand All @@ -156,7 +175,7 @@ source-repository-package
libs/cardano-ledger-pretty
libs/cardano-protocol-tpraos
libs/cardano-data
libs/compact-map
libs/vector-map
libs/set-algebra
libs/small-steps
libs/small-steps-test
Expand All @@ -165,7 +184,8 @@ source-repository-package
source-repository-package
type: git
location: https://github.com/input-output-hk/cardano-node
tag: 73f9a746362695dc2cb63ba757fbcabb81733d23
tag: 95c3692cfbd4cdb82071495d771b23e51840fb0e
--sha256: 1s4jjksz185dg4lp36ldha7vccxh0rk8zlvqms00zhg8kla21kr5
subdir:
cardano-api
cardano-git-rev
Expand All @@ -180,38 +200,48 @@ source-repository-package
type: git
location: https://github.com/input-output-hk/cardano-prelude
tag: bb4ed71ba8e587f672d06edf9d2e376f4b055555
--sha256: 00h10l5mmiza9819p9v5q5749nb9pzgi20vpzpy1d34zmh6gf1cj
subdir: cardano-prelude
cardano-prelude-test

-- In particular we rely on the code from this PR:
-- * <https://github.com/input-output-hk/cardano-sl-x509/pull/6>
-- being merged.
source-repository-package
type: git
location: https://github.com/input-output-hk/cardano-sl-x509
tag: 12925934c533b3a6e009b61ede555f8f26bac037
location: https://github.com/MELD-labs/cardano-sl-x509
tag: 819997049b9cc675b28059d3d6f511d08f934d10
--sha256: 1ia8vlqghis92cla8qmqa6kh8f3jn29b01fshyk5hmgy5373s684

source-repository-package
type: git
location: https://github.com/input-output-hk/goblins
tag: cde90a2b27f79187ca8310b6549331e59595e7ba
--sha256: 17c88rbva3iw82yg9srlxjv2ia5wjb9cyqw44hik565f5v9svnyg

-- In particular we rely on the code from this PR:
-- * <https://github.com/input-output-hk/iohk-monitoring-framework/pull/622>
-- being merged.
source-repository-package
type: git
location: https://github.com/input-output-hk/iohk-monitoring-framework
tag: 808724ff8a19a33d0ed06f9ef59fbd900b08553c
tag: 066f7002aac5a0efc20e49643fea45454f226caa
--sha256: 0s6x4in11k5ba7nl7la896g28sznf9185xlqg9c604jqz58vj9nj
subdir: contra-tracer
iohk-monitoring
plugins/backend-aggregation
plugins/backend-ekg
plugins/backend-monitoring
plugins/backend-trace-forwarder
plugins/scribe-systemd
tracer-transformers

source-repository-package
type: git
location: https://github.com/input-output-hk/ouroboros-network
tag: 4fac197b6f0d2ff60dc3486c593b68dc00969fbf
tag: 04245dbd69387da98d3a37de9f400965e922bb0e
--sha256: 0bgfclc7h441dwq9z69697nqfir6shj4358zxmwjiaifp93zkc2p
subdir:
io-sim
io-classes
monoidal-synchronisation
network-mux
ouroboros-consensus
Expand All @@ -222,25 +252,48 @@ source-repository-package
ouroboros-network
ouroboros-network-framework
ouroboros-network-testing
strict-stm
typed-protocols
typed-protocols-cborg
typed-protocols-examples
ntp-client

source-repository-package
type: git
location: https://github.com/snoyberg/http-client.git
tag: 1a75bdfca014723dd5d40760fad854b3f0f37156
subdir: http-client
type: git
location: https://github.com/input-output-hk/io-sim
tag: 57e888b1894829056cb00b7b5785fdf6a74c3271
--sha256: 1kv8lwmrw1c0g03jy3i3fgk3c8d47ihjcslg295djqj442y95y2f
subdir:
io-classes
io-sim
strict-stm

source-repository-package
type: git
location: https://github.com/input-output-hk/typed-protocols
tag: 181601bc3d9e9d21a671ce01e0b481348b3ca104
--sha256: 1lr97b2z7l0rpsmmz92rsv27qzd5vavz10cf7n25svya4kkiysp5
subdir:
typed-protocols
typed-protocols-cborg
typed-protocols-examples

-- Drops an instance breaking cardano-node.
source-repository-package
type: git
location: https://github.com/input-output-hk/flat.git
location: https://github.com/input-output-hk/flat
tag: ee59880f47ab835dbd73bea0847dab7869fc20d8
--sha256: 1lrzknw765pz2j97nvv9ip3l1mcpf2zr4n56hwlz0rk7wq7ls4cm

-- Until https://github.com/tibbe/ekg-json/pull/12 gets merged with aeson2 support
source-repository-package
type: git
location: https://github.com/vshabanov/ekg-json
tag: 00ebe7211c981686e65730b7144fbf5350462608
--sha256: 1zvjm3pb38w0ijig5wk5mdkzcszpmlp5d4zxvks2jk1rkypi8gsm

source-repository-package
type: git
location: https://github.com/input-output-hk/hedgehog-extras
tag: 967d79533c21e33387d0227a5f6cc185203fe658
--sha256: 0rbqb7a64aya1qizlr3im06hdydg9zr6sl3i8bvqqlf7kpa647sd

-- -------------------------------------------------------------------------
-- Constraints tweaking

Expand All @@ -252,33 +305,45 @@ allow-newer:
hjsonschema:*
, hjsonpointer:*
, cardano-sl-x509:ip
, cardano-addresses:aeson
, *:aeson
, size-based:template-haskell

-- Copied from (copied from cardano-node/cabal.project)
allow-newer:
*:aeson,
monoidal-containers:aeson,
size-based:template-haskell

allow-newer:
async-timer:unliftio-core

constraints:
hedgehog >= 1.0.2
-- QUICK FIX: hedgehog >= 1.1 defines Rec constructor, PlutusIR also defines
-- Rec constructor, and imports Hedgehog unqualified, leading to ambiguous
-- reference to Rec.
-- FIXME: https://input-output.atlassian.net/browse/ADP-1545
, hedgehog < 1.1
, hashable < 1.4
hashable < 1.4
, bimap >= 0.4.0
, openapi3 >= 3.2.0
, libsystemd-journal >= 1.4.4
, systemd >= 2.3.0
-- dependency of systemd-2.3.0
, network >= 3.1.1.1
-- choose versions that work with base >= 4.12
, hjsonpointer >= 1.5.0
, hjsonschema >= 1.10.0
, Cabal >= 3.4.0.0
, async-timer >= 0.2.0.0
, unliftio-core >= 0.2.0.1

-- This pin is just here to make cabalProejct == stackProject.
-- Remove it if you are happy for a newer version to be picked when possible.
, semigroups == 0.19.2
, persistent < 2.13.3.4

-- ----------------------------------------------------------------
-- Flags for dependencies

package cardano-config
flags: -systemd
flags: +systemd
package cardano-node
flags: -systemd
flags: +systemd
Copy link
Member Author

@Anviking Anviking Jun 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧐 Not sure where this came from nor the implications of it. Do we want it?

edit: it's from #3293

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see the node repo has docs which says

We recommend systemd on Linux

and has systemd = !pkgs.stdenv.hostPlatform.isMusl in its nix config.

With this change we have flags: +systemd but which can be overridden to false if isMusl, which should be equivalent to the node's = !isMusl.

So while I don't grasp the implications, I'd guess this is fine.


-- -------------------------------------------------------------------------
-- Enable specific tests in this repo
Expand Down
Loading