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

When BSC_CLUSTER_SIZE=21 , node panic #83

Open
erick785 opened this issue Nov 27, 2024 · 0 comments
Open

When BSC_CLUSTER_SIZE=21 , node panic #83

erick785 opened this issue Nov 27, 2024 · 0 comments

Comments

@erick785
Copy link

when .env set BSC_CLUSTER_SIZE=21, The node will panic. However, when setting BSC_CLUSTER_SIZE=5, the node runs normally.

panic: runtime error: index out of range [0] with length 0


goroutine 4562 [running]:
github.com/ethereum/go-ethereum/consensus/parlia.(*Snapshot).apply(0xc012b9c0e0, {0xc0107a06d8, 0x1, 0x25df380?}, {0x32ec548, 0xc01057c008}, {0xc0107a06d0, 0x0, 0x1}, 0x46e2280)
	github.com/ethereum/go-ethereum/consensus/parlia/snapshot.go:355 +0x114d
github.com/ethereum/go-ethereum/consensus/parlia.(*Parlia).snapshot(0xc010500008, {0x32ec548, 0xc01057c008}, 0x127dd910?, {0x44, 0xe4, 0xbd, 0x59, 0x27, 0x90, ...}, ...)
	github.com/ethereum/go-ethereum/consensus/parlia/parlia.go:825 +0x973
github.com/ethereum/go-ethereum/consensus/parlia.(*Parlia).GetJustifiedNumberAndHash(0xc010500008, {0x32ec548, 0xc01057c008}, {0xc0107a06d0, 0x1, 0x1})
	github.com/ethereum/go-ethereum/consensus/parlia/parlia.go:2000 +0x13b
github.com/ethereum/go-ethereum/core.(*BlockChain).GetJustifiedNumber(0xc01057c008, 0xc012bee788)
	github.com/ethereum/go-ethereum/core/blockchain.go:682 +0xa4
github.com/ethereum/go-ethereum/core.(*ForkChoice).ReorgNeededWithFastFinality(0xc000a20340, 0xc012bb1188, 0xc012bee788)
	github.com/ethereum/go-ethereum/core/forkchoice.go:150 +0xd0
github.com/ethereum/go-ethereum/core.(*BlockChain).writeBlockAndSetHead(0xc01057c008, 0xc0127df290, {0xc0107a06b8, 0x1, 0x1}, {0xc0107a06c8, 0x1, 0x1}, 0xc011b48c88, 0x1)
	github.com/ethereum/go-ethereum/core/blockchain.go:1935 +0xaa
github.com/ethereum/go-ethereum/core.(*BlockChain).WriteBlockAndSetHead(0xc01057c008, 0xc0127df290, {0xc0107a06b8, 0x1, 0x1}, {0xc0107a06c8, 0x1, 0x1}, 0xc011b48c88, 0x1)
	github.com/ethereum/go-ethereum/core/blockchain.go:1928 +0x114
github.com/ethereum/go-ethereum/miner.(*worker).resultLoop(0xc001225688)
	github.com/ethereum/go-ethereum/miner/worker.go:676 +0xc74
created by github.com/ethereum/go-ethereum/miner.newWorker in goroutine 1
	github.com/ethereum/go-ethereum/miner/worker.go:309 +0x83b
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

1 participant