Package Details: cardano-node 1.33.0-1

Git Clone URL: https://aur.archlinux.org/cardano-node.git (read-only, click to copy)
Package Base: cardano-node
Description: The core component that is used to participate in a Cardano decentralised blockchain.
Upstream URL: https://github.com/input-output-hk/cardano-node
Licenses: Apache
Submitter: emes
Maintainer: emes
Last Packager: emes
Votes: 3
Popularity: 0.092120
First Submitted: 2021-01-20 01:41
Last Updated: 2022-01-22 16:43

Latest Comments

1 2 Next › Last »

andrej commented on 2021-12-22 02:04

A few random (almost) off-topic comments:

  1. You need at least version 1.32.1 nowadays for the latest gLiveView script.
  2. The cardano-node-testnet.service file silently disappears, because it is never installed. While cardano-node.service is installed right here, there is no counterpart for cardano-node-testnet.service, so it’s not in the package.
  3. The runtime options recommendations have recently changed (and expanded). Here’s a relevant thread and you’ll find more by searching for missed slot leader checks. I’m currently using +RTS -N --nonmoving-gc -H4G -A64M -n4M -qb0 -I0 -RTS, for example (on a Ryzen 3950X (64 MB L3), 128 GB RAM). But never copy this blindly; instead read the runtime documentation and check what exactly makes sense for your setup.

dun commented on 2021-12-08 21:27

Could somebody explain how to configure the system so one can build this package? I only was successful building it with the PKGBUILD of lsf.

andrej commented on 2021-09-29 16:15

It would be great to add +RTS -N -RTS into the unit file after run, based on this context.

lsf commented on 2021-09-04 11:50

Another quick note: I've moved the PKGBUILD using ghcup to a separate repository at https://gitlab.com/p3lol/cardano-pkgbuilds . If that helps anyone: great!

Huge thanks to @emes for doing all the (actual) work on maintaining things here! That way, I can just grab that and modify things to make them work with ghcup ^^

andrej commented on 2021-08-06 08:34

BTW, there should be KillSignal=SIGINT in [Service], which is a known issue. After SIGTERM (the default) the shutdown occurs in a way that renders the node unresponsive for 10+ minutes (on a Ryzen 3950X with 5+ GB/s SSDs) the next time it starts.

andrej commented on 2021-08-01 03:02

Just a heads-up: For 1.28 you need to add the alonzo genesis files.

lsf commented on 2021-04-19 10:51

Just a quick note for anyone that still struggles with the haskell dependencies: I've put an updated PKGBUILD for 1.26.2 using ghcup up at https://gitlab.com/-/snippets/2101643 (and made it publicly visible this time around..) incorporating the recent changes from @emes as well :)

andrej commented on 2021-04-14 21:22

@emes The unit file needs an EnvironmentFile option.

...
[Service]
EnvironmentFile=-/etc/conf.d/cardano-node
ExecStart=/usr/bin/cardano-node $SOME_VAR $SOME_OTHER_VAR
...

emes commented on 2021-04-14 21:11

@andrej How to make the variables from /etc/conf.d/cardano-node visible in the service file? Just dropping the file in conf.d didn't seem to be enough.

andrej commented on 2021-04-11 22:42

Another side note: The build still doesn’t work for me and the patch introduced by @lsf works fine. (Yes, it downloads lots of stuff that may be already installed as packages, but it seems to be hermetic and reproducible.) The package-based Haskell libraries seem broken in some way. The huge lot of missing files and packages reported during the build suggest that there may be important bits (registries of some sort or actual files) missing in the Haskell setup on Arch. I don’t use Haskell, so I have no clue.

I first wiped out all the haskell-.* stuff I had installed before, just to make sure the build doesn’t depend on it in mysterious ways:

declare -i i=1
while ((i > 0)); do
  i=0
  for package in $(yay -Q | awk '/^haskell-/ {print $1}'); do
    yay -R "$package" --noconfirm && ((++i)) || :
  done
done

Then I used the patch by @lsf (adjusted for the current version):

diff --git a/PKGBUILD b/PKGBUILD
index 8cea7fd..e946591 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,10 +11,10 @@ _ghc_version="8.10.4"       # 8.10.3 fails to compile
 # However, if you have corresponding haskell-* packages present in the system, the build
 # will most likely fail trying to use the installed lib.
 # This is probably configurable but I'm not experienced in Haskell. Suggestions are welcome.
-makedepends=('git' 'cabal-install-bin' 'ghc>=8.10.4')
+makedepends=('git' 'ghcup-hs-bin')
 depends=('libsodium')
 _config_build="5367762"
-backup=("var/lib/cardano-node/config/{main,test}net-{config,topology}.json")
+backup=(var/lib/cardano-node/config/{main,test}net-{config,topology}.json)
 source=("https://github.com/input-output-hk/${pkgname}/archive/${pkgver}.zip"
         "https://hydra.iohk.io/build/${_config_build}/download/1/mainnet-config.json"
         "https://hydra.iohk.io/build/${_config_build}/download/1/mainnet-byron-genesis.json"
@@ -44,6 +44,12 @@ sha256sums=("e725f425cb7b7e581208a9b7b6989049fbaba8634475889910d92a09a14cac13"

 prepare() {
   cd "${srcdir}/${pkgname}-${pkgver}"
+  mkdir -p ${srcdir}/ghcup_tmp
+  TMPDIR=${srcdir}/ghcup_tmp ghcup install ghc ${_ghc_version}
+  ghcup set ghc ${_ghc_version}
+  ghcup install cabal
+  export PATH="$HOME/.cabal/bin:$HOME/.ghcup/bin:$PATH"
+  cabal update
   cabal configure
   echo "package cardano-crypto-praos" >> ${srcdir}/${pkgname}-${pkgver}/cabal.project.local
   echo "  flags: -external-libsodium-vrf" >> ${srcdir}/${pkgname}-${pkgver}/cabal.project.local

That^^^ builds without issues.