Skip to content

Conversation

@yperbasis
Copy link
Member

No description provided.

@yperbasis yperbasis marked this pull request as ready for review November 7, 2025 15:35
Copy link
Contributor

Copilot AI left a 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 StartMining method 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.

@yperbasis yperbasis enabled auto-merge (squash) November 10, 2025 11:09
@yperbasis yperbasis merged commit eb67b7f into main Nov 11, 2025
20 checks passed
@yperbasis yperbasis deleted the yperbasis/rm_mining branch November 11, 2025 10:01
mh0lt pushed a commit that referenced this pull request Nov 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants