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)
sudo apt update -y
sudo apt upgrade -y
sudo apt autoremove -y
cd $HOME/git
git clone https://github.com/IntersectMBO/cardano-node.git cardano-node-8.9.0
cd cardano-node-8.9.0
git fetch --all --recurse-submodules --tags
git checkout tags/8.9.0
echo -e "package cardano-crypto-praos\n flags: -external-libsodium-vrf" > cabal.project.local
echo "with-compiler: ghc-8.10.7" >> cabal.project.local
rm -rf $HOME/git/cardano-node-8.9.0/dist-newstyle/build/x86_64-linux/ghc-8.10.7
cabal update
cabal build cardano-cli cardano-node cardano-submit-api
sudo systemctl stop cardano-node
sudo systemctl stop cardano-submit-api
sudo cp $(find $HOME/git/cardano-node-8.9.0/dist-newstyle/build -type f -name "cardano-cli") /usr/local/bin/cardano-cli
sudo cp $(find $HOME/git/cardano-node-8.9.0/dist-newstyle/build -type f -name "cardano-node") /usr/local/bin/cardano-node
sudo cp $(find $HOME/git/cardano-node-8.9.0/dist-newstyle/build -type f -name "cardano-submit-api") /usr/local/bin/cardano-submit-api
cd $HOME/cardano-my-node
wget https://book.play.dev.cardano.org/environments/${NODE_CONFIG}/conway-genesis.json
sed -i ${NODE_CONFIG}-config.json -e "s/ConwayGenesisHash\":.*/ConwayGenesisHash\": \"de609b281cb3d8ae91a9d63a00c87092975612d603aa54c0f1c6a781e33d6e1e\",/g"
mv conway-genesis.json ${NODE_CONFIG}-conway-genesis.json
cd $HOME/cardano-my-node
sed -i ${NODE_CONFIG}-topology.json -e "s/\"valency\":/\"hotValency\":/g"
sudo systemctl start cardano-node
sudo systemctl start cardano-submit-api