He configurado un nodo de prueba con geth como se describe aquí . Seguí las instrucciones exactamente, excepto:
personal.newAccount("password")
y así usar miner.setEtherbase(personal.listAccounts[1])
(índice == 1)El problema es que no está minando aunque todo indica que debería estar minando...
> eth.mining
true
> eth.hashrate
0
> net.listening
true
> eth.blockNumber
1
¿Algún consejo para solucionar problemas?
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.4 LTS
Release: 16.04
Codename: xenial
$ uname -a
Linux ip-172-31-20-178 4.4.0-1052-aws #61-Ubuntu SMP Mon Feb 12 23:05:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
$ geth version
Geth
Version: 1.8.8-unstable
Git Commit: 577d375a0df08710e52b1c38720f98a7f25d206a
Architecture: amd64
Protocol Versions: [63 62]
Network Id: 1
Go Version: go1.9.2
Operating System: linux
GOPATH=/go
GOROOT=/usr/lib/go-1.9
geth --datadir /meth/footh \
--nodiscover --maxpeers 25 --rpc --rpcapi db,eth,net,web3 \
--rpcport 8080 --port 30303 --identity footh --rpccorsdomain "*" \
--networkid 531453 --mine --minerthreads 1 --etherbase 0xebee17d2d1aa3b21bd291360fea65597daa203d5 \
console
# this is the etherbase account I set up as per the instructions
{
"nonce": "0x0000000000000042", "timestamp": "0x0",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"extraData": "0x", "gasLimit": "0x8000000", "difficulty": "0x400",
"config": {},
"mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"coinbase": "0x3388888888888888888888888888888888888888", "alloc": { }
}
Creé y conecté con éxito a un par después de mucho solucionar problemas. En caso de que sea relevante. Tiene el mismo problema. La minería no ocurre pero está habilitada, etc.:
> admin.peers
[{
caps: ["eth/62", "eth/63"],
id: "536e146bb7104cabb04b32d68aac7f0f3a41654c4fccc035382ea0504256bd3c6481401943d8928a99df2ea2997963f41459c15520b088a4bd6b0690e12d0768",
name: "Geth/v1.8.8-unstable-577d375a/linux-amd64/go1.9.2",
network: {
inbound: false,
localAddress: "[::1]:49360",
remoteAddress: "[::1]:30301",
static: true,
trusted: false
},
protocols: {
eth: {
difficulty: 132096,
head: "0x6af5ce3df582c12b0afc173eb208b0fe55de7118c0ddbc675281b7fbf6a42613",
version: 63
}
}
}]
¿Puedes publicar el registro del nodo?
Puede configurarlo mediante: web3.miner.setEtherbase(web3.eth.accounts[0]) puede cambiar el parámetro para adaptarlo a su cuenta.
Primero elimine esa base de monedas y reconfigure su nodo. O simplemente configúrelo en la cuenta predeterminada que ya ha creado. Pero si elimina la base de monedas del archivo genesis.json y la configura después de adjuntarla a su nodo usando el comando anterior, estará listo para comenzar.
capitán mediodía
err="no UPnP or NAT-PMP router discovered"
No sé si esa es la causa , pero intenté agregar--nat=none
como se sugiere aquí . No ayudó.