Récupération de la blockchain Ethereum v2. Serveur : Distribution : Ubuntu 14.04 LTS Espace disque : 100 Go Coeurs : 6 RAM : 8192 Mo Le 23/06/16 : Après récupération de la blockchain Ethereum : Espace disque occupé = 29 Go Temps de récupération = 8 heures 1) Connexion au serveur :
[~] ➔ ssh administrateur@92.240.4.166
administrateur@server02ether:~$ su
Password:
root@server02ether:/home/administrateur#
2) Mise-à-jour :
root@server02ether:/home/administrateur# cd
root@server02ether:~# apt-get update && apt-get upgrade
3) Installation des paquets de base :
root@server02ether:~# apt-get install screen sudo mc vim
4) Installation des paquets de développement :
root@server02ether:~# apt-get install build-essential libgmp3-dev git-core
5) Installation de la dernière version de Go :
root@server02ether:~# apt-get install software-properties-common
root@server02ether:~# add-apt-repository -y ppa:ethereum/ethereum
root@server02ether:~# add-apt-repository -y ppa:ethereum/ethereum-dev
root@server02ether:~# apt-get update
root@server02ether:~# apt-get install ethereum
root@server02ether:~# apt-get install golang
root@server02ether:~# go version
go version go1.5.1 linux/amd64
6) Téléchargement de Ethereum :
root@server02ether:~# exit
administrateur@server02ether:~$
administrateur@server02ether:~$ git clone https://github.com/ethereum/go-ethereum
administrateur@server02ether:~$ cd go-ethereum/
7) Compilation :
administrateur@server02ether:~/go-ethereum$ make geth
8) Installation :
administrateur@server02ether:~/go-ethereum$ su -c 'cp build/bin/geth /usr/local/bin/'
administrateur@server02ether:~/go-ethereum$ cd
administrateur@server02ether:~$
9) Lancement de geth d'un screen : Récupération de la blackchain
administrateur@server02ether:~$ screen
administrateur@server02ether:~$ geth
...
I0622 19:07:17.168545 core/blockchain.go:964] imported 2048 block(s) (0 queued 0 ignored) including 466 txs in 2.722634219s. #78037 [ca142934 / 58e8e60a]
I0622 19:07:20.223083 core/blockchain.go:964] imported 2048 block(s) (0 queued 0 ignored) including 1266 txs in 3.048206021s. #80085 [dc406de2 / 33aff392]
..
10) Dans un autre screen :
administrateur@server02ether:~$ geth attach
Welcome to the Geth JavaScript console!
> eth.syncing
{
currentBlock: 173506,
highestBlock: 1751825,
knownStates: 0,
pulledStates: 0,
startingBlock: 0
}
> eth.syncing
false
> eth.blockNumber
1755215
> web3.fromWei(eth.getBalance(eth.coinbase), "ether")
1.995
> eth.getBalance(eth.coinbase).toNumber();
1995000000000000000
11) Afficher le plus haut bloc actuellement déjà fait : https://etherchain.org/ 12) Liens : http://raspnode.com/diyEthereumGeth.html https://ethereum.gitbooks.io/frontier-guide/content/installing_linux.html http://www.bortzmeyer.org/ethereum.html