新闻中心

教程 | 以太坊本地私有链开发环境搭建
发布时间:2019-08-29 16:49:01来源:何氏赌城-何氏贵宾-何氏赌城官网点击:15

  楼主,请教一下,我在执行到miner.start(1)这一步以后,控制台显示 :

  miner.start(1)

  true

  I0506 15:26:52.685892 3765 miner.go:119] Starting mining operation (CPU=1 TOT=3)

  I0506 15:26:52.686616 3765 worker.go:569] commit new work on block 1 with 1 txs & 0 uncles. Took 663.404μs

  I0506 15:26:52.686889 3765 backend.go:584] Automatic pregeneration of ethash DAG ON (ethash dir: /home/s/.ethash)

  I0506 15:26:52.687004 3765 backend.go:591] checking DAG (ethash dir: /home/s/.ethash)

  I0506 15:26:52.702480 3765 ethash.go:220] Generating DAG for epoch 0 (size 1073739904) (0000000000000000000000000000000000000000000000000000000000000000)

  I0506 15:26:53.799561 3765 ethash.go:237] Done generating DAG for epoch 0, it took 1.112844741s

  并没有看到文章中写到的 “Mined block”

  并且在执行 miner.stop(1) 命令以后使用代码 token.address 获取不到合约部署的代码。

  token.address

  undefined

  token

  {

  address: undefined,

  transactionHash: "0x541a55f472ee76fcea190d63411ee054e26322854581d186225242b3d69af2f6"

  }

  请教是环境有什么问题吗??感谢!