How to install cheapETH on Windows

The first step to install the right version of geth (which connects to the cheapETH chain) is to install Chocolatey.
To do so, ensure that you are using an administrative shell and run the following command:

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

With chocolatey installed we are now ready to install the build tools we need.
Open a new administrative shell and run the following commands:

choco install git
choco install golang
choco install mingw

With the previous tools installed we can now clone the source and build it.

Open a new shell and make a directory in which you want to download the source. Then, run git clone https://github.com/geohot/go-ethereum.git -b cheapeth to clone the correct version of geth.

Now move into the cloned repository with cd go-ethereum and run the following commands:

go get -u -v golang.org/x/net/context
go install -v ./cmd/...

With this done, we can start sync our node to the chain with:

geth --syncmode fast --cache 26000 --rpc --rpcaddr 127.0.0.1 --rpcapi eth,web3,debug,net --rpcvhosts=* --networkid 777

In the next tutorial we will see how to mine cheapETH.

Feel free to send cTH donations at 0x9c03461B095b407EF6cF072fB683bf41DeA1785D

AI & Software Engineering

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store