sudo apt-get upgrade
sudo apt-get install -y build-essential
sudo apt-get install git
cd ~
git clone https://github.com/ethereum/go-ethereum.git
cd ~
wget https://dl.google.com/go/go1.9.3.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.9.3.linux-amd64.tar.gz
add to ~/.profile : export PATH="$PATH:/usr/local/go/bin"
cd ~
cd go-ethereum
make geth
- Install SolC
Npm install -g solc
- Install Web3J
Npm install -g web3
Fron the ethereum folder, run ./runminer.sh
to start the miner node. Check the logs by running docker ps
to get the container ID and then docker logs CONTAINER_ID -f
.
When the DAG generation process has finished and the logs say 'commit new mining work', run ./runattach.sh
to open RPC connection with the miner node.
Generating DAG usually takes a while.
docker run --name some-postgres -e POSTGRES_PASSWORD=postgres -p 5432:5432 -d postgres
From the contracts folder, run
./redeploy-contract.sh
./wipeall.sh
The ethereum-part is an (over)simplification of https://github.com/vertigobr/ethereum