Skip to content

Instantly share code, notes, and snippets.

@cayblood cayblood/tezzigator.sh
Last active May 19, 2018

Embed
What would you like to do?
Script to automatically execute the steps in Tezzigator baking tutorial https://medium.com/@Tezzigator/permanent-tezos-sandboxing-509368945c4a on Ubuntu 16.04 LTS
#!/bin/bash
git clone -b zeronet https://gitlab.com/tezos/tezos.git
cd tezos
curl https://gist.githubusercontent.com/cayblood/329d24a099555e9a436f55a1cb8eb541/raw/c120c025465edfc8fa6bf4bbdbbef1ac79181da6/dictator-key.patch | patch -p1
sudo add-apt-repository ppa:avsm/ppa
sudo apt-get update
sudo apt-get install ocaml-nox opam
opam init
opam update
opam switch "tezos" --alias-of 4.06.1
eval `opam config env`
make build-deps
make
./tezos-node identity generate 24.
nohup ./tezos-node run --bootstrap-threshold=0 --closed --connections=0 --net-addr=127.0.0.1:9732 --no-bootstrap-peers --rpc-addr=127.0.0.1:8732 &
./tezos-client import unencrypted secret key dictator edsk31vznjHSSpGExDMHYASz45VZqXN4DPxvsa4hAyY8dHM28cZzp6
wget https://gist.githubusercontent.com/cayblood/8b3ed55b8ad35d68e57bd0feb720a439/raw/c4d0a44561f8c32010ef27e692595e102fe76369/protocol.json
./tezos-client -b genesis activate protocol ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK with fitness 24 and key dictator and parameters protocol.json
./tezos-client import unencrypted secret key b1 edsk3gUfUPyBSfrS9CCgmCiQsTCHGkviBDusMxDJstFtojtc1zcpsh
./tezos-client import unencrypted secret key b2 edsk39qAm1fiMjgmPkw1EgQYkMzkJezLNewd7PLNHTkr6w9XA2zdfo
./tezos-client import unencrypted secret key b3 edsk4ArLQgBTLWG5FJmnGnT689VKoqhXwmDPBuGx3z4cvwU9MmrPZZ
./tezos-client import unencrypted secret key b4 edsk2uqQB9AY4FvioK2YMdfmyMrer5R8mGFyuaLLFfSRo8EoyNdht3
./tezos-client import unencrypted secret key b5 edsk4QLrcijEffxV31gGdN2HU7UpyJjA8drFoNcmnB28n89YjPNRFm
# BAKE
./tezos-client -A 127.0.0.1 -P 8732 launch daemon --baking
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.