-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Remove PoW mining #17813
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
Remove PoW mining #17813
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR removes Proof-of-Work (PoW) mining functionality from the codebase, eliminating deprecated mining configuration options and related infrastructure.
- Removed
StartMiningmethod and associated PoW mining loop from the backend - Removed mining-related configuration parameters (
GasPrice,Recommit,Enabled,Noverify,Notify,SigKey) - Simplified ethash engine initialization by removing remote miner notification support
Reviewed Changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| polygon/tests/helper/miner.go | Removed PoW-specific miner configuration fields |
| node/rulesconfig/config.go | Removed notify parameter from rules engine creation |
| node/ethconfig/config.go | Removed default miner configuration settings |
| node/eth/backend.go | Removed StartMining method, mining loop, and related fields |
| node/cli/default_flags.go | Removed PoW mining CLI flags |
| execution/tests/mock/mock_sentry.go | Removed PoW-specific mocking configuration |
| execution/protocol/rules/ethash/sealer_test.go | Removed remote notification tests |
| execution/protocol/rules/ethash/sealer.go | Removed remote sealer notification logic |
| execution/protocol/rules/ethash/ethashcfg/ethashcfg.go | Removed NotifyFull configuration option |
| execution/protocol/rules/ethash/ethash_test.go | Updated test calls to remove notify parameter |
| execution/protocol/rules/ethash/ethash.go | Removed notify parameter from constructor functions |
| execution/builder/buildercfg/mining.go | Removed PoW-related fields from MiningConfig |
| cmd/utils/flags.go | Removed PoW mining flag definitions and validation logic |
| cmd/integration/commands/state_stages.go | Removed mining stage initialization and execution |
| cmd/integration/commands/stages.go | Simplified newSync function signature |
| cmd/integration/commands/flags.go | Removed PoW mining flag definitions |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.