No puedo hacer que geth
los comandos funcionen. Leí mucha información que dice usar el comando "este" para "esto". Como --upgradedb
o --removedb
. Estos no están funcionando. La razón por la que estoy probando estos diferentes comandos es que algo está pasando y ethminer
no estoy trabajando para nada y estoy tratando de averiguar qué archivos puedo eliminar que podrían estar causando un problema o estar dañados y si algunas geth
carpetas o bases de datos están causando un problema con ethminer
. Además, si tengo --remove
una base de datos, ¿esto elimina la cadena de bloques y tengo que descargarla nuevamente?
Los comandos no requieren el --
prefijo. Las opciones sí.
De la ayuda:
user@Kumquat:~$ geth help
NAME:
geth - the go-ethereum command line interface
USAGE:
geth [options] command [command options] [arguments...]
VERSION:
1.4.10-stable
COMMANDS:
import import a blockchain file
export export blockchain into file
upgradedb upgrade chainblock database
removedb Remove blockchain and state databases
dump dump a specific block from storage
monitor Geth Monitor: node metrics monitoring and visualization
account manage accounts
wallet ethereum presale wallet
console Geth Console: interactive JavaScript environment
attach Geth Console: interactive JavaScript environment (connect to node)
js executes the given JavaScript files in the Geth JavaScript VM
makedag generate ethash dag (for testing)
gpuinfo gpuinfo
gpubench benchmark GPU
version print ethereum version numbers
init bootstraps and initialises a new genesis block (JSON)
help, h Shows a list of commands or help for one command
ETHEREUM OPTIONS:
--datadir "/home/user/.ethereum" Data directory for the databases and keystore
--keystore Directory for the keystore (default = inside the datadir)
--networkid value Network identifier (integer, 0=Olympic, 1=Frontier, 2=Morden) (default: 1)
...
Y geth removedb
eliminará su cadena de bloques. Tendrás que volver a descargar la base de datos.
Puede intentar cambiar el nombre de su .ethereum/chaindata
carpeta y volver a descargar la cadena. Puede cambiar el nombre de este nuevo si es necesario.
Sus geth
datos deberían estar bien si ve mensajes como el siguiente, donde el número de bloque es aproximadamente #2074485 actualmente:
I0815 14:49:39.039358 core/blockchain.go:963] imported 1 block(s) (0 queued 0 ignored) including 0 txs in 8.433081ms. #2074485 [89ff2cb3 / 89ff2cb3]
I0815 14:50:00.291091 core/blockchain.go:963] imported 1 block(s) (0 queued 0 ignored) including 2 txs in 23.258293ms. #2074486 [f074d77d / f074d77d]
Y geth parece estar funcionando bien. Pero ethminer no funciona para nada y sé que comparten algunas de las mismas carpetas y no sabían qué intentar
ethminer
solo debe estar usando el $HOME/.ethash
directorio. ethminer
se comunica con geth
el uso del puerto RPC 8545 de forma predeterminada.
Supongamos que inició su geth
instancia con la línea de comando:
geth --support-dao-fork --rpc --rpcaddr localhost --rpcport 8545 console
Te conectas ethminer
a geth
usar la línea de comando:
ethminer -F http://localhost:8545 -G
Si ethminer
puede comunicarse con geth
pero aún tiene problemas, intente borrar el $HOME/.ethash
subdirectorio.
geth
debería mostrarte el siguiente tipo de mensaje cada 15 segundos en promedio:
I0816 12:04:20.118923 core/blockchain.go:963] imported 1 block(s) (0 queued 0 ignored) including 20 txs in 14.503ms. #2079921 [20076720 / 20076720]
I0816 12:04:20.133206 miner/worker.go:573] commit new work on block 2079922 with 28 txs & 0 uncles. Took 14.201495ms
I0816 12:04:34.231668 core/blockchain.go:963] imported 1 block(s) (0 queued 0 ignored) including 28 txs in 17.859299ms. #2079922 [003f36c4 / 003f36c4]
I0816 12:04:34.237316 miner/worker.go:573] commit new work on block 2079923 with 4 txs & 0 uncles. Took 5.580535ms
I0816 12:05:26.380479 core/blockchain.go:963] imported 1 block(s) (0 queued 0 ignored) including 4 txs in 5.37515ms. #2079923 [56525ea3 / 56525ea3]
I0816 12:05:26.404808 miner/worker.go:573] commit new work on block 2079924 with 45 txs & 0 uncles. Took 24.273473ms
ethminer
debería mostrarte el siguiente tipo de mensaje cada 15 segundos en promedio:
miner 12:04:34.248|ethminer Got work package:
miner 12:04:34.248|ethminer Header-hash: e24359a9cddcafab4ff6a52a4b7efcd8d5461ac7b1f433f38e4eeca8002810be
miner 12:04:34.248|ethminer Seedhash: 46862965466b5f8011ebefb35a0d1a0b7290c3ba38c11e916c74c347e00ed903
miner 12:04:34.248|ethminer Target: 0000000000047d90c52a0ae70d0483986b92d788f7086ca6562a7820f32e8342
ℹ 12:04:34.336|gpuminer0 workLoop 1 #46862965… #46862965…
ℹ 12:04:34.412|gpuminer1 workLoop 1 #46862965… #46862965…
cdc285