My ethereum balance returns 0 when checked via geth, but according to etherchain it has a value

给你一囗甜甜゛ 提交于 2019-12-25 08:48:19

问题


I have the exact same problem as described here but the solution doesn't help (so don't flag this post).

Instead of the other post, I think my connectivity works fine. At least I get a number higher than 0 when I enter net.peerCount.

Furthermore I waited 24h+ connected to the ether network.

What am I missing? What am I doing wrong?

When I type geth attach it tells me that the parameter at block: 0 (Thu, 01 Jan 1970 01:00:00 CET)... maybe this is the problem? My OS time is correct.


回答1:


If eth.blockNumber returns 0 then you are not synced to blockchain. The block number should match https://ethstats.net/ which is approximately 4,100,000 right now

So you are not synced with the network.

Things to check:

  • Are you running the latest client?
  • Are you connecting to the right network and not testnet?
  • Are you on a network which blocks peer-to-peer traffic? Ethereum traffic looks a lot like bittorrent traffic and a lot of workplaces block it
  • What do your peers (admin.peers) look like? Do they have the latest clients? What are their block numbers?

You can try running geth in higher verbosity

LOGGING AND DEBUGGING OPTIONS:
  --verbosity value         Logging verbosity: 0=silent, 1=error, 2=warn, 3=info, 4=core, 5=debug, 6=detail (default: 3)

Hope this helps! If all fails you can use a public ethereum node like Infura - https://infura.io/#how-to



来源:https://stackoverflow.com/questions/45595736/my-ethereum-balance-returns-0-when-checked-via-geth-but-according-to-etherchain

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!