introduccion al blockchain 2018 05 07 - GrupoSabra/demos-y-presentaciones GitHub Wiki

Setup de la testnet

Artículo original

https://arctouch.com/blog/how-to-set-up-ethereum-blockchain/

Resumen de comandos

sudo apt-get install software-properties-common
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install ethereum

geth --datadir .ethereum/ account new
> Address: e7d5db47befe107568c24f58270dce414adb52ef
geth --datadir .ethereum/ account new
> Address: 3e5e985ab7629d74926e73de46e85995b97e2e60

puppeth

2. Configure new genesis
2. Clique - proof-of-authority
2. Manage existing genesis
2. Export genesis configuration

geth --datadir .ethereum/ init demotestnet.json

geth --nodiscover --networkid 777 --datadir .ethereum/ --mine --rpc --rpcapi eth,personal,net,web3 --rpcaddr 10.4.0.5 --unlock e7d5db47befe107568c24f58270dce414adb52ef --password psw.txt

Notas

  1. Agregar "personal" en el switch “--rpcapi” para poder interactuar con la billetera del nodo
  2. Agregar el switch “--password” apuntando a un archivo con la password en texto plano de la cuenta especificada en “Which accounts are allowed to seal?”

Herramientas de desarrollo

Solidity

Links