Go-Ethereum
區塊鏈在 Mist 中同步,但在 Geth 中不同步?
我正在嘗試我的。當我嘗試在 Geth 中同步時,我所有的握手都失敗了,我無法添加對等點。我的埠 30303 已打開,並且 –nat=none 標誌仍然不會發生同步。霧同步沒問題。我現在正在使用 Windows,因為我無法讓 Rx 480 驅動程序在 Debian 中工作。這是我的命令提示符輸出:
C:\Program Files\Geth>geth --rpc --nat=none --verbosity 5 I0922 04:01:19.690683 1208 backend.go:256] Protocol Version: 60, Network Id: 0 I0922 04:01:19.690683 1208 backend.go:266] Blockchain DB Version: 3 I0922 04:01:19.691686 1208 statedb.go:232] (+) b9c015918bdaba24b4ff057a92a3873d6eb201be I0922 04:01:19.692688 1208 statedb.go:232] (+) 6c386a4b26f73c802f34673f7248bb118f97424a I0922 04:01:19.692688 1208 statedb.go:232] (+) cd2a3d9f938e13cd947ec05abc7fe734df8dd826 I0922 04:01:19.692688 1208 statedb.go:232] (+) e6716f9544a56c530d868e4bfbacb172315bdead I0922 04:01:19.692688 1208 statedb.go:232] (+) 0000000000000000000000000000000000000001 I0922 04:01:19.692688 1208 statedb.go:232] (+) 0000000000000000000000000000000000000002 I0922 04:01:19.692688 1208 statedb.go:232] (+) 0000000000000000000000000000000000000003 I0922 04:01:19.692688 1208 statedb.go:232] (+) 0000000000000000000000000000000000000004 I0922 04:01:19.692688 1208 statedb.go:232] (+) 1a26338f0d905e295fccb71fa9ea849ffa12aaf4 I0922 04:01:19.692688 1208 statedb.go:232] (+) dbdbdb2cbd23b783741e8d7fcf51e459b497e4a6 I0922 04:01:19.692688 1208 statedb.go:232] (+) e4157b34ea9615cfbde6b4fda419828124b70c78 I0922 04:01:19.692688 1208 statedb.go:232] (+) 2ef47100e0787b915105fd5e3f4ff6752079d5cb I0922 04:01:19.693690 1208 chain_manager.go:258] Last block (#0) fd4af92a79c7fc2fd8bf0d342f2e832e1d4f485c85b9152d2039e03bc604fdca TD=131072 I0922 04:01:19.693690 1208 statedb.go:232] (+) 0000000000000000000000000000000000000000 I0922 04:01:19.693690 1208 state_object.go:241] 0000000000000000000000000000000000000000: gas (+ 3141592) I0922 04:01:19.693690 1208 state_object.go:197] 0000000000000000000000000000000000000000: #0 1500000000000000000 (+ 1500000000000000000) I0922 04:01:19.696698 1208 cmd.go:148] Starting Geth/v0.9.26/windows/go1.4.2 I0922 04:01:19.696698 1208 server.go:293] Starting Server I0922 04:01:19.704719 1208 udp.go:189] Listening, enode://ad39a762dca79653988a8b4e3015c7e82bee52b03b36d13b3e1c595c0a2849a203da3d39ddc109b32abfe5421650eecfd717b2ef69b55f41498d10b99307d250@[::]:30303 I0922 04:01:19.704719 1208 backend.go:477] Server started I0922 04:01:19.704719 1208 server.go:530] Listening on [::]:30303 I0922 04:01:19.705722 1208 table.go:279] Seeding network with enode://002d253340adf5d01aa257e9ae20a6651fbe57702b6847c2ff4355717681d1f6ed7bb5fca1f620896c1636293ab81e1f32ba9343feea45da618f798b9c7592e5@104.131.91.143:30303 I0922 04:01:19.705722 1208 table.go:279] Seeding network with enode://004746ebb4bcf5bc49d7c267935af00d0dc0dc64c9db63e1b034e8e9d47197b4cc951299fdcb50418babb5c2bb4d8f4079ac71e7999d9f78f68ff8814361fd92@77.120.98.234:30303 I0922 04:01:19.705722 1208 table.go:279] Seeding network with enode://005b5d9f1180dccdf9ae26db2be5343c7836d715314a9097f435e959ce1853130adf2bbbf2f1a79c2ec92d531e8fa2b6a7c5a204e7e435e8a34a827df493bad1@45.63.86.233:30303 I0922 04:01:19.705722 1208 table.go:279] Seeding network with enode://0094142aa8868e5871b81544ecb1239dd0bc09c2fedbd7faea55715d7dc5e6a37476b42d5fc704ab6ac1902188c94462eeed5823a2d9f5b2be5dddd7e77d4554@59.149.136.210:30303?discport=1101 I0922 04:01:19.705722 1208 table.go:279] Seeding network with enode://00aa2772e8a4556531f43bfecea53b25c24a8383cc0d4a805d071438ad1b49e014ac3a8b72ced59d984d0beac0e5796ad18226cc4436a38bd2a07505f2bda95e@206.255.93.25:30303?discport=30659 I0922 04:01:19.705722 1208 table.go:279] Seeding network with enode://00aed81a40d123e22e0f780f3d5a85a34ca84a630d03c6928621dd252db4e4f1034ff1e14184694a5e57f267dcca3f3d429fa0bd7ea85e0165373a38d3287941@92.51.166.201:30303 I0922 04:01:19.705722 1208 table.go:279] Seeding network with enode://00af8248d908e2669a2692980ae084981ca7021e09e124cb7c6b792e1b5ede423f1d61e3d61f28e0fd0a58ba2a7c4fa880b60c766c33dcc55a2a3c71f34a8e52@173.192.160.221:30303 I0922 04:01:19.705722 1208 table.go:279] Seeding network with enode://00b2c3c9a17b530da3f9cb5a14393aff58530f619b551b2028ffd4402e115092a329cdd76da21f19bc76c2aa937c24a5ca5e1984de9db8209507b4627297d238@123.56.49.100:30303 I0922 04:01:19.705722 1208 table.go:279] Seeding network with enode://00c33747a9e57d21eba29ec6c50b5900f73e1d9d92eab2f980296ac6c0e53dcfb556cd488e260f574a5922a2e6d916e4c1490dbd6919ea6fc94beeb393241191@114.55.224.76:30303 I0922 04:01:19.705722 1208 table.go:279] Seeding network with enode://01178960a1da0ee9b2e9802686c871f1aab758898a6755b19d3b68cd4fc1685e7a9332ee87d22b07cb2ac67a444f689c3f912bb2c29173928e2980d1ab8bffe4@188.213.173.170:30303 I0922 04:01:19.850080 1208 server.go:550] Accepted conn 52.197.114.185:42550 I0922 04:01:19.862115 1208 server.go:574] inbound conn 52.197.114.185:42550 faild enc handshake: could not decrypt auth message (ecies: invalid public key) I0922 04:01:20.581366 1208 server.go:550] Accepted conn 94.125.189.5:54237 I0922 04:01:20.594433 1208 server.go:574] inbound conn 94.125.189.5:54237 faild enc handshake: could not decrypt auth message (ecies: invalid public key) I0922 04:01:20.662413 1208 server.go:550] Accepted conn 159.122.239.115:34231 I0922 04:01:20.675859 1208 server.go:574] inbound conn 159.122.239.115:34231 faild enc handshake: could not decrypt auth message (ecies: invalid public key) I0922 04:01:20.766422 1208 server.go:550] Accepted conn 190.217.6.5:65023 I0922 04:01:20.920987 1208 cmd.go:60] Shutting down (interrupt) ... I0922 04:01:20.933044 1208 server.go:603] inbound conn 698f40d3dbfa0b75 190.217.6.5:65023 failed checkpoint addpeer: server stopped I0922 04:01:20.948324 1208 handler.go:128] Stopping ethereum protocol handler... I0922 04:01:20.948324 1208 handler.go:138] Ethereum protocol handler stopped I0922 04:01:20.952296 1208 chain_manager.go:514] Chain manager stopped I0922 04:01:20.952296 1208 transaction_pool.go:276] TX Pool stopped I0922 04:01:20.952296 1208 backend.go:645] Automatic pregeneration of ethash DAG OFF (ethash dir: C:\Users\admin\AppData\Ethash) I0922 04:01:20.966334 1208 database.go:78] flushed and closed db: C:\Users\admin\AppData\Roaming\Ethereum\blockchain I0922 04:01:20.982375 1208 database.go:78] flushed and closed db: C:\Users\admin\AppData\Roaming\Ethereum\state I0922 04:01:20.990396 1208 database.go:78] flushed and closed db: C:\Users\admin\AppData\Roaming\Ethereum\extra
對於 Geth 命令行,Peers 一直為 0。為什麼 Geth 不能同步時 Mist 會同步?我還能如何讓 Geth 同步?
下面列出了兩種可能性,但很可能是第一種。等到新修補的二進製文件可用,然後升級。
- 乙太坊網路目前正在被 DDOS 攻擊。
https://twitter.com/JohnLilic/status/778963611448250368
https://blog.ethereum.org/2016/09/22/ethereum-network-currently-undergoing-dos-attack/
這是我的乙太坊錢包指標,顯示
geth
無法跟上處理區塊的速度。原因是攻擊者正在發送許多執行大量區塊鏈數據讀取(磁碟活動)的低成本交易。以下是乙太坊開發人員計劃處理此類問題的後續步驟 - https://blog.ethereum.org/2016/09/22/transaction-spam-attack-next-steps/
geth
2.您正在從命令行執行舊版本檢查(我使用的是 OS/X,但 Windows 應該類似):
Iota:mac-x64 user$ pwd /Applications/Ethereum Wallet.app/Contents/nodes/geth/mac-x64 # Current version of geth packaged with Ethereum Wallet Iota:mac-x64 user$ ./geth version Geth Version: 1.4.12-stable-421df866 Protocol Versions: [63 62] Network Id: 1 Go Version: go1.7 OS: darwin GOPATH= GOROOT=/usr/local/go # Older version of geth with the recent bug Iota:mac-x64 user$ geth version Geth Version: 1.4.11-stable-fed692f6 Protocol Versions: [63 62] Network Id: 1 Go Version: go1.6 OS: darwin GOPATH= GOROOT=/usr/local/Cellar/go/1.6/libexec