我在跑步
--syncmode=fast --cache=4096 --maxpeers=50
我的笔记本电脑疯狂地运行着,但它永远无法到达链的顶端(块现在已经被创建了--每14秒一次)。
我正在从geth控制台运行这个:
function status() {
console.log("diff states");
console.log(eth.syncing.knownStates-eth.syncing.pulledStates);
console.log("diff blocks");
console.log(eth.syncing.highestBlock-eth.syncing.currentBlock);
console.log("peers");
console.log(net.peerCount);
};
我得到了这样的东西:
> status()
diff states
23717
diff blocks
104
peers
12
diff块在60-120之间振荡,但从不收敛到0。所以我永远到不了最后一个街区。
由于我处于快速同步模式,这意味着我的帐户总是显示零..不能发送/接收资金。
我在这里做错了什么?
我应该改为全节点吗..?这将显示正确的状态,我的帐户,即使没有完全同步,对吗?
还是我应该去平价而不是get?我已经有一段时间没和埃瑟姆在一起玩了。
还是我只是不耐烦..?
帮助感激!
我的hw详情:
我决定去一个满节点,但是现在这个geth客户端因为内存不足而死了。
heinä 03 19:53:59 sampsa-xps-old geth[7365]: INFO [07-03|19:53:59.745] Imported new chain segment blocks=198 txs=7184 mgas=423.091 elapsed=8.011s mgasps=52.812 number=3804902 hash="3a51df…e690ff" age=3y1mo2w dirty=625.69MiB
heinä 03 19:54:07 sampsa-xps-old geth[7365]: INFO [07-03|19:54:07.757] Imported new chain segment blocks=60 txs=1919 mgas=130.876 elapsed=8.011s mgasps=16.335 number=3804962 hash="1e617b…2cf7f8" age=3y1mo2w dirty=622.71MiB
heinä 03 19:54:11 sampsa-xps-old geth[7365]: fatal error: runtime: out of memory
heinä 03 19:54:12 sampsa-xps-old geth[7365]: runtime stack:
heinä 03 19:54:12 sampsa-xps-old geth[7365]: runtime.throw(0x123d678, 0x16)
heinä 03 19:54:12 sampsa-xps-old geth[7365]: /usr/local/go/src/runtime/panic.go:774 +0x72
我将缓存更改为2048并重新启动了客户机,但我知道我得到了很多这样的信息:
heinä 03 23:14:07 sampsa-xps-old geth[2278]: WARN [07-03|23:14:07.195] Synchronisation failed, dropping peer peer=3ed8bf9ac1074322 err="retrieved hash chain is invalid: missing parent"
heinä 03 23:14:08 sampsa-xps-old geth[2278]: WARN [07-03|23:14:08.480] Synchronisation failed, dropping peer peer=b31577aeb5194851 err="action from bad peer ignored"
heinä 03 23:14:11 sampsa-xps-old geth[2278]: WARN [07-03|23:14:11.032] Synchronisation failed, dropping peer peer=0c6253589a8d244d err="action from bad peer ignored"
heinä 03 23:14:17 sampsa-xps-old geth[2278]: WARN [07-03|23:14:17.606] Synchronisation failed, dropping peer peer=d9f9252151cde7bc err=timeout
heinä 03 23:14:28 sampsa-xps-old geth[2278]: WARN [07-03|23:14:28.142] Synchronisation failed, dropping peer peer=f2e666172f3b92ee err=timeout
heinä 03 23:15:12 sampsa-xps-old geth[2278]: WARN [07-03|23:15:12.855] Synchronisation failed, dropping peer peer=91baf3867f5d09eb err="retrieved hash chain is invalid: missing parent"
heinä 03 23:15:25 sampsa-xps-old geth[2278]: WARN [07-03|23:15:25.233] Checkpoint challenge timed out, dropping id=e2be7549d1dc2d45 conn=dyndial addr=54.169.18.25:23232 type=Geth/v1.9.15-stable-0f77f34b/linux-amd64/go1.14.4
heinä 03 23:15:59 sampsa-xps-old geth[2278]: WARN [07-03|23:15:59.248] Synchronisation failed, dropping peer peer=5792e16bd9014bc1 err="retrieved hash chain is invalid: missing parent"
heinä 03 23:16:34 sampsa-xps-old geth[2278]: WARN [07-03|23:16:34.452] Synchronisation failed, dropping peer peer=f0dbb55b701d1978 err="retrieved hash chain is invalid: timeout"
heinä 03 23:16:35 sampsa-xps-old geth[2278]: WARN [07-03|23:16:35.668] Synchronisation failed, dropping peer peer=887c72a99e4b9301 err="action from bad peer ignored"
..so区块链变酸了吗?盖斯看上去不像一个稳定的项目。
但是,回到我最初的问题:
为什么从最后处理的块到最新的现有块的距离没有收敛(它波动)。是因为我的笔记本电脑处理跟不上吗..?还是因为我的网络连接不能快速下载这些块(我有10 mbps)?可能是什么原因?
难道我找不到足够多的同龄人来足够快地完成任务吗?我通常能得到最多13个同伴。
发布于 2020-08-13 07:23:14
因此,我从来没有得到快速同步工作(不知道为什么),所以我改为全节点。
我的经验/清单总结如下:https://github.com/elsampsa/home-ethereum
截至2020年6月至8月,同步花费了一个多月的时间,区块链约占850 GB。
现在发送事务就像一个符咒(在30秒内)。薇娃·埃瑟姆。
https://ethereum.stackexchange.com/questions/84731
复制相似问题