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

Bump cardano dependencies to match node to 10.2.1 #5031

Draft
wants to merge 18 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 16 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ Or modify the `docker-compose.yml` to host your client in the `mainnet_default`

### Running on preprod

Preprod network is broken for node 10.1.4 at some block in the past.
Preprod network is broken for node 10.2.1 at some block in the past.
One way to overcome that limitation is to download a snapshot that used an old version node (1.35.2)
to trespass that point.
Use `snpashot.sh` to download the snapshot.
Expand Down
22 changes: 6 additions & 16 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ repository cardano-haskell-packages
d4a35cd3121aa00d18544bb0ac01c3e1691d618f462c46129271bccf39f7e8ee

-- repeating the index-state for hackage to work around hackage.nix parsing limitation
index-state: 2024-10-10T00:52:24Z
index-state: 2025-01-01T23:24:19Z

index-state:
, hackage.haskell.org 2024-10-10T00:52:24Z
, cardano-haskell-packages 2025-01-07T17:42:00Z
, hackage.haskell.org 2025-01-01T23:24:19Z
, cardano-haskell-packages 2025-03-01T00:00:00Z

packages:
lib/address-derivation-discovery
Expand Down Expand Up @@ -154,8 +154,8 @@ source-repository-package
source-repository-package
type: git
location: https://github.com/cardano-foundation/cardano-wallet-agda
tag: b5f11bde33585277aa3628b01fe6f5ee8bed2101
--sha256: 0dc0b60vbq1ljwrdxr45nc99c3gdn98myjyd3c9xmlkn8cwpvjwx
tag: 7663f8ae600462ba460e771e651ff3bd66fe4a5c
--sha256: sha256-3ielFSr9G1YUuQcImCv3eppYbwE+WA9tEFc219VWHgk=
subdir:
lib/cardano-wallet-read

Expand All @@ -167,36 +167,26 @@ allow-newer:
, servant-openapi3:*
, katip:Win32
, ekg-wai:time

, cardano-wallet-read:cardano-ledger-api, ouroboros-consensus
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

to be removed, as the dependency has been bumped

constraints:
base >= 4.18.2.0 && < 5
, openapi3 >= 3.2.0
, persistent ^>= 2.14.6.0

, bech32 >= 1.1.7

-- Force newer version of `lobemo-backend-ekg` here,
-- because older versions depend on `snap-server`,
-- which in turns fails to link on linux musl
-- due to some missing `sendfile64` hack.
-- (We use linux musl to get statically linked binaries.)
, lobemo-backend-ekg >= 0.2.0.0

-- lower versions of katip won't build with the Win32-2.12.0.1
-- which is shipped with the ghc-9.2.8
, katip >= 0.8.7.4


-- Cardano Node dependencies:
, io-classes == 1.5.0.0
, io-classes -asserts

, cardano-ledger-api == 1.9.4.0

, ouroboros-network == 0.17.1.2

, cardano-api == 10.1.0.0


-- Related to: https://github.com/haskell/cabal/issues/8554
if impl(ghc == 8.10.7)
Expand Down
1 change: 1 addition & 0 deletions configs/cardano/mainnet/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"TracingVerbosity": "NormalVerbosity",
"TurnOnLogMetrics": true,
"TurnOnLogging": true,
"UseTraceDispatcher": false,
"defaultBackends": [
"KatipBK"
],
Expand Down
5 changes: 3 additions & 2 deletions configs/cardano/preview/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
"LastKnownBlockVersion-Alt": 0,
"LastKnownBlockVersion-Major": 3,
"LastKnownBlockVersion-Minor": 1,
"MinNodeVersion": "8.12.0",
"MinNodeVersion": "10.1.4",
"PeerSharing": true,
"Protocol": "Cardano",
"RequiresNetworkMagic": "RequiresMagic",
"ShelleyGenesisFile": "shelley-genesis.json",
"ShelleyGenesisHash": "363498d1024f84bb39d3fa9593ce391483cb40d479b87233f868d6e57c3a400d",
"TargetNumberOfActivePeers": 20,
"TargetNumberOfEstablishedPeers": 50,
"TargetNumberOfEstablishedPeers": 40,
"TargetNumberOfKnownPeers": 150,
"TargetNumberOfRootPeers": 60,
"TestAllegraHardForkAtEpoch": 0,
Expand Down Expand Up @@ -65,6 +65,7 @@
"TracingVerbosity": "NormalVerbosity",
"TurnOnLogMetrics": true,
"TurnOnLogging": true,
"UseTraceDispatcher": false,
"defaultBackends": [
"KatipBK"
],
Expand Down
12 changes: 6 additions & 6 deletions configs/cardano/preview/download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
set -euo pipefail

rm ./*.json
curl https://book.play.dev.cardano.org/environments/preview/config.json > config.json
curl https://book.play.dev.cardano.org/environments/preview/conway-genesis.json > conway-genesis.json
curl https://book.play.dev.cardano.org/environments/preview/topology.json > topology.json
curl https://book.play.dev.cardano.org/environments/preview/byron-genesis.json > byron-genesis.json
curl https://book.play.dev.cardano.org/environments/preview/shelley-genesis.json > shelley-genesis.json
curl https://book.play.dev.cardano.org/environments/preview/alonzo-genesis.json > alonzo-genesis.json
curl https://book.play.dev.cardano.org/environments-pre/preview/config.json > config.json
curl https://book.play.dev.cardano.org/environments-pre/preview/conway-genesis.json > conway-genesis.json
curl https://book.play.dev.cardano.org/environments-pre/preview/topology.json > topology.json
curl https://book.play.dev.cardano.org/environments-pre/preview/byron-genesis.json > byron-genesis.json
curl https://book.play.dev.cardano.org/environments-pre/preview/shelley-genesis.json > shelley-genesis.json
curl https://book.play.dev.cardano.org/environments-pre/preview/alonzo-genesis.json > alonzo-genesis.json
Loading
Loading