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

geth --mine --miner.etherbase 0x5495530c79f10A6a894b7E3EB27a39B41424dE40 not working anymore #28671

Closed
heat9070 opened this issue Dec 12, 2023 · 9 comments
Labels

Comments

@heat9070
Copy link

on cmd I have written this command
geth --mine --miner.etherbase 0x5495530c79f10A6a894b7E3EB27a39B41424dE40

now I get back this error, previously was working fine

panic: ethash (pow) sealing not supported any more

goroutine 4270 [running]:
github.com/ethereum/go-ethereum/consensus/ethash.(*Ethash).Seal(0xc0003b0280?, {0x7ff755bf9965?, 0xc0001de840?}, 0xc0001de948?, 0xc0001de840?, 0x8f44b4a2ddbae9db?)
C:/DEV/go-ethereum/consensus/ethash/ethash.go:84 +0x25
github.com/ethereum/go-ethereum/consensus/beacon.(*Beacon).Seal(0xc0003bf1a0, {0x7ff757834c48, 0xc000201400}, 0xc00011f040, 0x0?, 0x1?)
C:/DEV/go-ethereum/consensus/beacon/consensus.go:399 +0x8d
github.com/ethereum/go-ethereum/miner.(*worker).taskLoop(0xc0000c4b40)
C:/DEV/go-ethereum/miner/worker.go:623 +0x2fd
created by github.com/ethereum/go-ethereum/miner.newWorker in goroutine 1
C:/DEV/go-ethereum/miner/worker.go:294 +0x918

I have cloned the repo and tried to switch to other branch (release/1.11) and installed geth locally, yet I got the same error

What should be done here ?

@rjl493456442
Copy link
Member

Proof-of-work mining is not longer supported in Geth. The related pull request was included in 1.12.0 release. #27178

If you still want to use the PoW for launching a private network, you have to switch to a branch older than 1.12.0

@heat9070
Copy link
Author

I switched to branch 1.11.6, run same command, same issue, any ideas?

Also if I need to start mining without POW what should I do ?

@karalabe
Copy link
Member

Geth only supports post-merge (PoS) networks. Bock production on those networks require an operational beacon chain and beacon client too. The beacon client will use Geth's engine API to produce blocks.

I switched to branch 1.11.6, run same command, same issue, any ideas?

You cannot have the same issue because that error message did not exist in 1.11.6. Perhaps you did not rebuild Geth or you have the previous version still referenced when you try to run it.

@heat9070
Copy link
Author

Geth only supports post-merge (PoS) networks. Bock production on those networks require an operational beacon chain and beacon client too. The beacon client will use Geth's engine API to produce blocks.

Would you share more details, I need to mine using geth but without POW

@karalabe
Copy link
Member

You'll need to provide a lot more details as to what you're trying to do. "Mine without PoW" doesn't make much sense for us unfortunately.

@heat9070
Copy link
Author

I think it is straight forward, now when I try to start mining on geth I get back panic: ethash (pow) sealing not supported any more, so what I am simply asking about is the alternative to proof of work to start mining, I hope it is clear !

@karalabe
Copy link
Member

Mining as a concept doesn't exist at Ethereum any more since last year. As such, Geth does not support mining any more.

If you want to make blocks on Ethereum mainnet (or any of our testnets), you need to look into how PoS works, how the beacon chain works, and how validators work. Geth is a small component of the larger validator infrastructure nowadays.

If you want to run your own private networks, you can run old versions of Geth, but we do not support those any more. Or you can set up your own PoS network, for which there are devops tools out there. Hosting your beacon network it outside the scope of Geth however.

@heat9070
Copy link
Author

Do you have any reference to look at for working with PoS on Ethereum ?

@karalabe
Copy link
Member

Lighthouse (a beacon client) has a fairly good doc on setting up a node and later in the docs on setting up and running validators: https://lighthouse-book.sigmaprime.io/intro.html .

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

No branches or pull requests

4 participants
@karalabe @heat9070 @rjl493456442 and others