Estoy tratando de hacer que geth se ejecute en la red de prueba. Lo he construido con éxito, pero estos comandos nunca parecen funcionar.
blockchain@ethereum:~/go-ethereum$ ./build/bin/geth --testnet --light console
INFO [08-25|22:58:28] Starting peer-to-peer node instance=Geth/v1.7.0-unstable-3e0dbe0e/linux-amd64/go1.9
INFO [08-25|22:58:28] Allocated cache and file handles database=/home/blockchain/.ethereum/testnet/geth/lightchaindata cache=128 handles=1024
INFO [08-25|22:58:28] Initialised chain configuration config="{ChainID: 3 Homestead: 0 DAO: <nil> DAOSupport: true EIP150: 0 EIP155: 10 EIP158: 10 Metropolis: 9223372036854775807 Engine: ethash}"
INFO [08-25|22:58:28] Disk storage enabled for ethash caches dir=/home/blockchain/.ethereum/testnet/geth/ethash count=3
INFO [08-25|22:58:28] Disk storage enabled for ethash DAGs dir=/home/blockchain/.ethash count=2
INFO [08-25|22:58:28] Loaded most recent local header number=0 hash=419410…ca4a2d td=1048576
INFO [08-25|22:58:28] Starting P2P networking
WARN [08-25|22:58:28] Light client mode is an experimental feature
INFO [08-25|22:58:28] RLPx listener up self="enode://569e2233c2908ba6a721bd682d5e34c99a4a033373628e649d4135daa041931886b0c23478933e87b7809de607f9672c6ecd8b1a301c7e3f6897a818254e8bd6@[::]:30303?discport=0"
INFO [08-25|22:58:28] IPC endpoint opened: /home/blockchain/.ethereum/testnet/geth.ipc
Welcome to the Geth JavaScript console!
instance: Geth/v1.7.0-unstable-3e0dbe0e/linux-amd64/go1.9
modules: admin:1.0 debug:1.0 eth:1.0 net:1.0 personal:1.0 rpc:1.0 txpool:1.0 web3:1.0
> eth.coinbase
Error: not supported
at web3.js:3104:20
at web3.js:6191:15
at get (web3.js:6091:38)
at <unknown>
> eth.blockNumber
0
He esperado más de diez minutos; ¿No debería ver coinbase y blockNumber actualizados cuando estoy sincronizado? ¿No se --light
supone que debo hacer una "sincronización de luz" para que no necesite descargar toda la cadena?
eht.coinbase
no es compatible porque se supone que se debe usar un nodo de luz para transmitir TX y verificar los valores de BC, no para hacer minería.
Acerca del número de bloque, parece que su cliente no puede encontrar ningún nodo con el que sincronizar. Intentar:
admin.peers
Si muestra una matriz vacía []
, significa que no está en contacto con ningún nodo, por lo que su cliente no se sincroniza.
Prueba --syncmode light en su lugar:
blockchain@ethereum:~/go-ethereum$ ./build/bin/geth --testnet --syncmode light console