-
Notifications
You must be signed in to change notification settings - Fork 190
Tuto for install Ethermint on Raspberry PI3 #458
Description
install go V1.10.3 for ARM processor
sudo apt-get -y autoremove golang
cd ~
wget https://dl.google.com/go/go1.10.3.linux-armv6l.tar.gz
sudo tar -C /usr/local -xvf go1.10.3.linux-armv6l.tar.gz
add to path
echo "export GOPATH=/home/pi/goApps" >> ~/.profile
echo "export PATH=$PATH:$GOPATH/bin" >> ~/.profile
create the goApps directory,
mkdir goApps
set GOPATH, and put it on PATH
source ~/.profile
verification
go version
=> go1.10.3 linux/arm
#cleanup
rm go1.*.gz
not a good idea but it's for try
sudo chmod 0777 /usr/local/go
sudo chmod 0777 /usr/local/go/bin
######################################
COSMOS
cd ~/goApps
go get github.com/cosmos/cosmos-sdk
cd $GOPATH/src/github.com/cosmos/cosmos-sdk
make get_tools
make get_vendor_deps
make install
make install_examples
maj cosmos-sdk et examples
cd $GOPATH/src/github.com/cosmos/cosmos-sdk
git fetch -a origin
git checkout v0.23.1
make get_vendor_deps
make install
make update_tools
make get_vendor_deps
make install_examples
######################################
COSMOS ETHERMINT
go get github.com/cosmos/ethermint
cd $GOPATH/src/github.com/cosmos/ethermint
To build the binary and put the results in ./build
make tools deps build
To build the project and install it in $GOBIN
make tools deps install
test
go run test/run.go
Results
balance of 0x756F45E3FA69347A9A973A725E3C98bC4db0b5a0: 200000000000000000000
commitID after genesis: CommitID{[235 78 80 238 156 235 50 19 95 118 247 9 106 207 72 45 127 238 223 177]:1}
genesis state root hash: 0000000000000001000000000000000000000000000000000000000000000000
processed 10000 blocks, time so far: 27.752147527s
processed 20000 blocks, time so far: 58.846918022s
processed 30000 blocks, time so far: 1m33.428193922s
processed 40000 blocks, time so far: 2m15.464807485s
processed 50000 blocks, time so far: 3m26.317443827s
processed 60000 blocks, time so far: 4m52.410022823s
processed 70000 blocks, time so far: 6m59.779624902s
processed 80000 blocks, time so far: 8m28.41647754s
processed 90000 blocks, time so far: 10m36.08382025s
processed 97638 blocks
root at block 500: 00000000000001f5000000000000000000000000000000000000000000000000
investor's balance after block 500: 200000000000000000000
miner of block 501's balance after block 500: 0
miner of block 501's balance after block 501: 5000000000000000000
have fun !