Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save QCPOLstakepool/fcebe7f0faff6b3d71ae6cd7d903f8f8 to your computer and use it in GitHub Desktop.

Select an option

Save QCPOLstakepool/fcebe7f0faff6b3d71ae6cd7d903f8f8 to your computer and use it in GitHub Desktop.

Cardano Stake Pool Migration 10.5.4 -> 11.0.1

THIS GUIDE IS FOR EDUCATIONAL PURPOSE ONLY. IT COMES WITH NO WARRANTY AND SHOULD BE USED AT YOUR OWN RISKS. MAKE THE APPROPRIATE BACKUPS!!! THIS GUIDE ASSUME YOU FOLLOWED https://www.coincashew.com/coins/overview-ada/guide-how-to-build-a-haskell-stakepool-node

Written by QCPOL (https://qcpol.stakepool.quebec)

Update server

sudo apt update -y
sudo apt upgrade -y
sudo apt autoremove -y

Update to Ubuntu 24.04 (must be done NOT in SSH session, repeat until 24.04)

sudo do-release-upgrade

Reboot

lsb_release -a

Install new dependencies

sudo apt install liburing-dev protobuf-compiler libsnappy-dev

Building cardano-node 11.0.1

cd $HOME/git
git clone https://github.com/IntersectMBO/cardano-node.git cardano-node-11.0.1
cd cardano-node-11.0.1
git fetch --all --recurse-submodules --tags
git checkout tags/11.0.1
echo -e "package cardano-crypto-praos\n flags: -external-libsodium-vrf" > cabal.project.local
echo "with-compiler: ghc-9.6.6" >> cabal.project.local
rm -rf $HOME/git/cardano-node-11.0.1/dist-newstyle/build/x86_64-linux/ghc-9.6.6
cabal update
cabal build cardano-node cardano-submit-api

Building cardano-cli 11.0.0.0

cd $HOME/git
git clone https://github.com/IntersectMBO/cardano-cli.git cardano-cli-11.0.0.0
cd cardano-cli-11.0.0.0
git fetch --all --recurse-submodules --tags
git checkout tags/cardano-cli-11.0.0.0
echo -e "package cardano-crypto-praos\n flags: -external-libsodium-vrf" > cabal.project.local
echo "with-compiler: ghc-9.6.6" >> cabal.project.local
rm -rf $HOME/git/cardano-cli-11.0.0.0/dist-newstyle/build/x86_64-linux/ghc-9.6.6
cabal update
cabal build cardano-cli

Stop service

sudo systemctl stop cardano-node
sudo systemctl stop cardano-submit-api

Installing 11.0.1

sudo cp $(find $HOME/git/cardano-node-11.0.1/dist-newstyle/build -type f -name "cardano-node") /usr/local/bin/cardano-node
sudo cp $(find $HOME/git/cardano-node-11.0.1/dist-newstyle/build -type f -name "cardano-submit-api") /usr/local/bin/cardano-submit-api
sudo cp $(find $HOME/git/cardano-cli-11.0.0.0/dist-newstyle/build -type f -name "cardano-cli") /usr/local/bin/cardano-cli

Start service

sudo systemctl start cardano-node
sudo systemctl start cardano-submit-api

Versions

  • ghc 9.6.6
  • cabal 3.12.1.0
  • cardano-cli 11.0.0.0
  • cardano-node 11.0.1
  • libsodium dbb48cce5429cb6585c9034f002568964f1ce567
  • secp256k1 ac83be33
  • libblst v0.3.14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment