Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

block can't syncing Error: invalid difficulty: have 2584526037287456, want 2584251159642656 #18492

Closed
liuhuanhui opened this issue Jan 22, 2019 · 6 comments

Comments

@liuhuanhui
Copy link

liuhuanhui commented Jan 22, 2019

geth version: 1.9

[root@eth eth-node]# geth --syncmode "fast" --maxpeers 100  -datadir /node/eth-node/ --rpc --rpcapi eth,web3,personal --rpcport 8545 --rpcaddr "127.0.0.1"
INFO [01-22|16:48:56.940] Maximum peer count                       ETH=100 LES=0 total=100
INFO [01-22|16:48:56.941] Starting peer-to-peer node               instance=Geth/v1.9.0-unstable-73534343/linux-amd64/go1.10
INFO [01-22|16:48:56.941] Allocated cache and file handles         database=/node/eth-node/geth/chaindata cache=512 handles=32767
INFO [01-22|16:48:57.707] Initialised chain configuration          config="{ChainID: 1 Homestead: 1150000 DAO: 1920000 DAOSupport: true EIP150: 2463000 EIP155: 2675000 EIP158: 2675000 Byzantium: 4370000 Constantinople: 7080000 Engine: ethash}"
INFO [01-22|16:48:57.707] Disk storage enabled for ethash caches   dir=/node/eth-node/geth/ethash count=3
INFO [01-22|16:48:57.707] Disk storage enabled for ethash DAGs     dir=/root/.ethash              count=2
INFO [01-22|16:48:57.707] Initialising Ethereum protocol           versions="[63 62]" network=1
WARN [01-22|16:48:57.783] Head state missing, repairing chain      number=7080006 hash=213c72…c5358b
INFO [01-22|16:49:03.259] Rewound blockchain to past state         number=7066271 hash=c4e646…7553e2
INFO [01-22|16:49:03.260] Loaded most recent local header          number=7080006 hash=213c72…c5358b td=8757915281947813094117 age=5d1h50m
INFO [01-22|16:49:03.261] Loaded most recent local full block      number=7066271 hash=c4e646…7553e2 td=8721424076094749350612 age=1w13h52m
INFO [01-22|16:49:03.261] Loaded most recent local fast block      number=7080006 hash=213c72…c5358b td=8757915281947813094117 age=5d1h50m
INFO [01-22|16:49:03.261] Loaded local transaction journal         transactions=0 dropped=0
INFO [01-22|16:49:03.261] Regenerated local transaction journal    transactions=0 accounts=0
WARN [01-22|16:49:03.261] Blockchain not empty, fast sync disabled 
INFO [01-22|16:49:03.320] New local node record                    seq=15 id=04b343863c889d39 ip=127.0.0.1 udp=30303 tcp=30303
INFO [01-22|16:49:03.321] Started P2P networking                   self=enode://1e820842032ca8726c811da541a26ddee5fbde4cf431db8eb018571326c46b3909dffea9d26881be9615ec5dfc95e279cea3fa8d2b037ec6b595b8838c1a10e1@127.0.0.1:30303
INFO [01-22|16:49:03.322] IPC endpoint opened                      url=/node/eth-node/geth.ipc
INFO [01-22|16:49:03.322] HTTP endpoint opened                     url=http://127.0.0.1:8545   cors= vhosts=localhost
INFO [01-22|16:49:06.832] New local node record                    seq=16 id=04b343863c889d39 ip=47.75.39.83 udp=30303 tcp=30303
INFO [01-22|16:49:43.321] Block synchronisation started 
ERROR[01-22|16:49:48.402] 
########## BAD BLOCK #########
Chain config: {ChainID: 1 Homestead: 1150000 DAO: 1920000 DAOSupport: true EIP150: 2463000 EIP155: 2675000 EIP158: 2675000 Byzantium: 4370000 Constantinople: 7080000 Engine: ethash}

Number: 7080000
Hash: 0x30f1e707150171df122488ffac94a7c165ea5d2cb7136e18aa1bae37f069ebc9


Error: invalid difficulty: have 2584526037287456, want 2584251159642656
##############################
 
WARN [01-22|16:49:48.402] Synchronisation failed, dropping peer    peer=0726b6c40af4ba04 err="retrieved hash chain is invalid"

@liuhuanhui
Copy link
Author

Errors are now like this.

INFO [01-22|18:24:06.229] Maximum peer count                       ETH=25 LES=0 total=25
INFO [01-22|18:24:06.230] Starting peer-to-peer node               instance=Geth/v1.9.0-unstable-73534343/linux-amd64/go1.10
INFO [01-22|18:24:06.230] Allocated cache and file handles         database=/node/eth-node/geth/chaindata cache=512 handles=32767
INFO [01-22|18:24:07.013] Initialised chain configuration          config="{ChainID: 1 Homestead: 1150000 DAO: 1920000 DAOSupport: true EIP150: 2463000 EIP155: 2675000 EIP158: 2675000 Byzantium: 4370000 Constantinople: 7080000 Engine: ethash}"
INFO [01-22|18:24:07.014] Disk storage enabled for ethash caches   dir=/node/eth-node/geth/ethash count=3
INFO [01-22|18:24:07.014] Disk storage enabled for ethash DAGs     dir=/root/.ethash              count=2
INFO [01-22|18:24:07.014] Initialising Ethereum protocol           versions="[63 62]" network=1
WARN [01-22|18:24:07.082] Head state missing, repairing chain      number=7080006 hash=213c72…c5358b
INFO [01-22|18:24:12.546] Rewound blockchain to past state         number=7066271 hash=c4e646…7553e2
INFO [01-22|18:24:12.547] Loaded most recent local header          number=7080006 hash=213c72…c5358b td=8757915281947813094117 age=5d3h25m
INFO [01-22|18:24:12.547] Loaded most recent local full block      number=7066271 hash=c4e646…7553e2 td=8721424076094749350612 age=1w15h27m
INFO [01-22|18:24:12.547] Loaded most recent local fast block      number=7080006 hash=213c72…c5358b td=8757915281947813094117 age=5d3h25m
INFO [01-22|18:24:12.547] Loaded local transaction journal         transactions=0 dropped=0
INFO [01-22|18:24:12.547] Regenerated local transaction journal    transactions=0 accounts=0
WARN [01-22|18:24:12.547] Blockchain not empty, fast sync disabled 
INFO [01-22|18:24:12.575] New local node record                    seq=45 id=04b343863c889d39 ip=127.0.0.1 udp=30303 tcp=30303
INFO [01-22|18:24:12.575] Started P2P networking                   self=enode://1e820842032ca8726c811da541a26ddee5fbde4cf431db8eb018571326c46b3909dffea9d26881be9615ec5dfc95e279cea3fa8d2b037ec6b595b8838c1a10e1@127.0.0.1:30303
INFO [01-22|18:24:12.577] IPC endpoint opened                      url=/node/eth-node/geth.ipc
INFO [01-22|18:24:15.658] New local node record                    seq=46 id=04b343863c889d39 ip=47.75.39.83 udp=30303 tcp=30303
INFO [01-22|18:26:22.576] Block synchronisation started 
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x511e0e]

goroutine 1360 [running]:
math/big.(*Int).Cmp(0xc43ac77000, 0x0, 0x1895b3e90413c353)
	/usr/local/go/src/math/big/int.go:319 +0x2e
github.com/ethereum/go-ethereum/core.(*BlockChain).insertSidechain(0xc42a090000, 0xc43fdc9650, 0xc420087410, 0xc420087401, 0x1, 0x1, 0xc45448a660, 0x1, 0x1, 0xc4420ea780, ...)
	/node/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/core/blockchain.go:1333 +0x1165
github.com/ethereum/go-ethereum/core.(*BlockChain).insertChain(0xc42a090000, 0xc467d382f0, 0x1, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/node/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/core/blockchain.go:1139 +0x2ee3
github.com/ethereum/go-ethereum/core.(*BlockChain).InsertChain(0xc42a090000, 0xc467d382f0, 0x1, 0x1, 0x1bd71c8, 0x0, 0x0)
	/node/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/core/blockchain.go:1088 +0xc46
github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).importBlockResults(0xc4538eb6c0, 0xc467d382e8, 0x1, 0x1, 0x1, 0x110c2e0)
	/node/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/eth/downloader/downloader.go:1490 +0x434
github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).processFullSyncContent(0xc4538eb6c0, 0xd0d78a6b32ee5638, 0xc455a82f98)
	/node/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/eth/downloader/downloader.go:1464 +0x79
github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).(github.com/ethereum/go-ethereum/eth/downloader.processFullSyncContent)-fm(0xc400000008, 0x1016668)
	/node/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/eth/downloader/downloader.go:479 +0x2a
github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).spawnSync.func1(0xc4538eb6c0, 0xc451c0fb00, 0xc4670cac20)
	/node/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/eth/downloader/downloader.go:491 +0x59
created by github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).spawnSync
	/node/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/eth/downloader/downloader.go:491 +0xaf
[root@WinPayETH eth-node]#

@holiman
Copy link
Contributor

holiman commented Jan 22, 2019

Duplicate of #18488 ,
This error was fixed by #18436 .
Duplicate of #18421 and #18388

@holiman holiman closed this as completed Jan 22, 2019
@liuhuanhui
Copy link
Author

重复#18488
此错误由#18436修复。
重复#18421#18388

How can I repair it?

@relaxbao
Copy link

重复#18488
此错误由#18436修复。
重复#18421#18388

How can I repair it?

请问您解决这个问题了吗?

@liuhuanhui
Copy link
Author

重复#18488
此错误由#18436修复。
重复#18421#18388

How can I repair it?

I reinstalled the get version, resynchronized, and everything was fine

@oslivan
Copy link

oslivan commented Mar 1, 2019

I also have this error after upgrading 1.8.23, but it will be fine after synchronization for a while, I think it may be the reason to synchronize the block from the lower version of the node. When the old node is automatically cleared, it is normal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants