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

Single Slice Miner Failure on Fullnode #31

Open
hubchub opened this issue Aug 25, 2023 · 0 comments
Open

Single Slice Miner Failure on Fullnode #31

hubchub opened this issue Aug 25, 2023 · 0 comments

Comments

@hubchub
Copy link
Contributor

hubchub commented Aug 25, 2023

quai-cpu-miner tag: v0.3.0-pre.3
quai-cpu-miner commit: c4f1126

go-quai tag: v0.13.0-rc.0
go-quai commit: 843f7df8

Expected behaviour
Miners stay stable
Actual behaviour
A single slice crashes after some time

Steps to reproduce the behaviour
Run go-quai
Run quai-cpu-miner

Logs of crash:

time="2023-08-25T14:00:33Z" level=warning msg="One ethash cache must always be in memory requested=0"
2023/08/25 14:00:33 main.go:159: Starting Quai cpu miner in location  [0 0]
2023/08/25 14:00:33 main.go:234: Pending block not found error:  getPendingHeader call can only be made on chain processing the state
2023/08/25 14:00:34 main.go:234: Pending block not found error:  getPendingHeader call can only be made on chain processing the state
2023/08/25 14:00:36 main.go:234: Pending block not found error:  getPendingHeader call can only be made on chain processing the state
2023/08/25 14:00:40 main.go:234: Pending block not found error:  getPendingHeader call can only be made on chain processing the state
2023/08/25 14:00:48 main.go:234: Pending block not found error:  getPendingHeader call can only be made on chain processing the state
2023/08/25 14:00:55 main.go:282: Mining Block:  [40 310 2125] location [0 0] difficulty 0
panic: division by zero

goroutine 103 [running]:
math/big.nat.div({0x0?, 0x0?, 0x0?}, {0x0?, 0x0?, 0x0?}, {0xc000155d10?, 0x0?, 0x0?}, {0x0, ...})
    /usr/local/go/src/math/big/natdiv.go:507 +0x34b
math/big.(*Int).QuoRem(0xc0000a7ed0, 0xc000161de0, 0xc00035c560, 0xc0000a7da0)
    /usr/local/go/src/math/big/int.go:237 +0x9c
math/big.(*Int).Div(0x0?, 0x0?, 0x0?)
    /usr/local/go/src/math/big/int.go:248 +0x45
github.com/dominant-strategies/go-quai/consensus/blake3pow.(*Blake3pow).mine(0xc000336880, 0xc000312000, 0x0?, 0x76a6af7d24424a06, 0xc00068c7e0, 0xc00068c840)
    /go/pkg/mod/github.com/dominant-strategies/[email protected]/consensus/blake3pow/sealer.go:119 +0x8c
github.com/dominant-strategies/go-quai/consensus/blake3pow.(*Blake3pow).Seal.func1(0x0?, 0x0?)
    /go/pkg/mod/github.com/dominant-strategies/[email protected]/consensus/blake3pow/sealer.go:83 +0x74
created by github.com/dominant-strategies/go-quai/consensus/blake3pow.(*Blake3pow).Seal
    /go/pkg/mod/github.com/dominant-strategies/[email protected]/consensus/blake3pow/sealer.go:81 +0x585
panic: division by zero

goroutine 107 [running]:
math/big.nat.div({0x0?, 0x0?, 0x0?}, {0x0?, 0x0?, 0x0?}, {0xc000155d10?, 0x0?, 0x0?}, {0x0, ...})
    /usr/local/go/src/math/big/natdiv.go:507 +0x34b
math/big.(*Int).QuoRem(0xc0000daed0, 0xc000161de0, 0xc00035c560, 0xc0000dada0)
    /usr/local/go/src/math/big/int.go:237 +0x9c
math/big.(*Int).Div(0x0?, 0x0?, 0x0?)
    /usr/local/go/src/math/big/int.go:248 +0x45
github.com/dominant-strategies/go-quai/consensus/blake3pow.(*Blake3pow).mine(0xc000336880, 0xc000312000, 0x0?, 0x6690ed26ebc32d7e, 0xc00068c7e0, 0xc00068c840)
    /go/pkg/mod/github.com/dominant-strategies/[email protected]/consensus/blake3pow/sealer.go:119 +0x8c
github.com/dominant-strategies/go-quai/consensus/blake3pow.(*Blake3pow).Seal.func1(0x0?, 0x0?)
    /go/pkg/mod/github.com/dominant-strategies/[email protected]/consensus/blake3pow/sealer.go:83 +0x74
created by github.com/dominant-strategies/go-quai/consensus/blake3pow.(*Blake3pow).Seal
    /go/pkg/mod/github.com/dominant-strategies/[email protected]/consensus/blake3pow/sealer.go:81 +0x585
Stream closed EOF for quai-sandbox/go-quai-sandbox-0 (quai-cpu-miner00)

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