有個(gè)問題請教下,fast模式是在同步完之前 區(qū)塊鏈數(shù)據(jù)是不可訪問的嗎?
eth.blockNumber結(jié)果是0 這正常不?
答:eth.blockNumber是0好像是不正常的,你看一下數(shù)據(jù)同步日志,是否有進(jìn)度。
假如說你的啟動命令是這樣的:
geth--networkid=4--datadir"/f/home/rinkeby/chain"--cache=1024--syncmode=light--rinkeby --rpc console2>>output.log
那么,就會有一個(gè)日志文件output.log,里面有同步數(shù)據(jù)的進(jìn)度,如果不動的話,很有可能是沒連上節(jié)點(diǎn)。