Skip to content

Conversation

jflo
Copy link
Contributor

@jflo jflo commented May 7, 2025

The first of a series of PRs to remove PoW from Besu.

Signed-off-by: jflo <justin+github@florentine.us>
@jflo jflo marked this pull request as ready for review May 7, 2025 17:58
Copy link
Contributor

@garyschulte garyschulte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bold start. It isn't clear what we are signaling with this though. The end of all PoW support in besu, the plugin-izing of it, etc. I would guess this breaks ETC support?

Another and probably less controversial target would be the stratum mining stuff.

Comment on lines -250 to -257
.blockHeaderValidatorBuilder(
feeMarket ->
MainnetBlockHeaderValidator.createPgaBlockHeaderValidator(
new EpochCalculator.Ecip1099EpochCalculator(), powHasher(PowAlgorithm.ETHASH)))
.ommerHeaderValidatorBuilder(
feeMarket ->
MainnetBlockHeaderValidator.createLegacyFeeMarketOmmerValidator(
new EpochCalculator.Ecip1099EpochCalculator(), powHasher(PowAlgorithm.ETHASH)))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this break ETC support? it looks like we are no longer validating PoW header fields.

Comment on lines -421 to -423
if (isEthHash()) {
builder.put("ethash", getEthashConfigOptions().asMap());
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it seems like this will break external use cases that rely on fixed difficulty ethash chains.

Comment on lines -278 to -286
CommandLineUtils.checkOptionDependencies(
logger,
commandLine,
"--miner-enabled",
!isMiningEnabled,
asList(
"--miner-stratum-enabled",
"--Xminer-remote-sealers-limit",
"--Xminer-remote-sealers-hashrate-ttl"));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this isn't just PoW, this is clique and PoA right? miner has never been the right name, but IIRC PoA algorithms still need to use miner-enabled and this check I believe is still valid for sealer opts

@jflo
Copy link
Contributor Author

jflo commented May 7, 2025

bold start. It isn't clear what we are signaling with this though. The end of all PoW support in besu, the plugin-izing of it, etc. I would guess this breaks ETC support?

Another and probably less controversial target would be the stratum mining stuff.

yes, it would break ETC support. See this pr for more mining removal: https://github.com/hyperledger/besu/pull/8454/files

Copy link

github-actions bot commented Jun 7, 2025

This pr is stale because it has been open for 30 days with no activity.

Copy link

This pr was closed because it has been inactive for 14 days since being marked as stale.

@github-actions github-actions bot closed this Jun 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants