首先,我使用以下命令使用成因文件启动节点:
>geth init genesis.json然后使用以下命令启动区块链网络:
>geth --identity "node1" --rpc --rpcport "8001" --rpccorsdomain "*" --datadir "node1" --port "30304" --ipcapi "admin,db,eth,debug,miner,net,shh,txpool,personal,web3" --rpcapi "db,eth,net,web3" --autodag --networkid 123 --nat "any"然后打开另一个命令提示符并键入
>geth attach 我本可以使用“控制台”,但我想正确地监视网络日志。
现在我创建了一个帐户并发出命令:
>miner.start()
I0310 11:14:39.402000 eth/backend.go:454] Automatic pregeneration of ethash
DAG ON (ethash dir: C:\Users\Rahul13615\AppData\Ethash)
I0310 11:14:39.403000 eth/backend.go:461] checking DAG (ethash dir:
C:\Users\Rahul13615\AppData\Ethash)
I0310 11:14:39.404000 node/node.go:296] IPC endpoint opened:
\\.\pipe\geth.ipc
I0310 11:14:39.407000 node/node.go:366] HTTP endpoint opened:
http://localhost:8001
I0310 11:15:31.755000 miner/miner.go:119] Starting mining operation (CPU=4
TOT=5)
I0310 11:15:31.756000 miner/worker.go:539] commit new work on block 1 with 0
txs & 0 uncles. Took 1ms
I0310 11:15:31.757000 ethash.go:259] Generating DAG for epoch 0 (size
1073739904)
(0000000000000000000000000000000000000000000000000000000000000000)
I0310 11:15:32.717000 ethash.go:276] Done generating DAG for epoch 0, it
took 961ms在此之后,没有新的积木被逗号。它只是停了下来,或者正在慢慢地跑。我应该如何纠正这种情况,使它跑得很快?
发布于 2017-03-28 03:11:26
我想你已经用geth控制台启动了矿工。为什么我这么说,我看不出-我的在你的印心指挥部。
这将是同样的,即使矿工已经开始。
这是因为机器内存的能力,只需尝试eth.hashrate和eth.blockNumber。如果两者都返回零,您的机器正在与计算能力作斗争。
因此,我尝试使用具有一些良好RAM功能的AWS实例,立即创建块,没有任何延迟。
https://ethereum.stackexchange.com/questions/12933
复制相似问题