-
Notifications
You must be signed in to change notification settings - Fork 954
removes PoWAlgorithm and its references #8592
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
Conversation
Signed-off-by: jflo <justin+github@florentine.us>
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.
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.
.blockHeaderValidatorBuilder( | ||
feeMarket -> | ||
MainnetBlockHeaderValidator.createPgaBlockHeaderValidator( | ||
new EpochCalculator.Ecip1099EpochCalculator(), powHasher(PowAlgorithm.ETHASH))) | ||
.ommerHeaderValidatorBuilder( | ||
feeMarket -> | ||
MainnetBlockHeaderValidator.createLegacyFeeMarketOmmerValidator( | ||
new EpochCalculator.Ecip1099EpochCalculator(), powHasher(PowAlgorithm.ETHASH))) |
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.
does this break ETC support? it looks like we are no longer validating PoW header fields.
if (isEthHash()) { | ||
builder.put("ethash", getEthashConfigOptions().asMap()); | ||
} |
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.
it seems like this will break external use cases that rely on fixed difficulty ethash chains.
CommandLineUtils.checkOptionDependencies( | ||
logger, | ||
commandLine, | ||
"--miner-enabled", | ||
!isMiningEnabled, | ||
asList( | ||
"--miner-stratum-enabled", | ||
"--Xminer-remote-sealers-limit", | ||
"--Xminer-remote-sealers-hashrate-ttl")); |
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.
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
yes, it would break ETC support. See this pr for more mining removal: https://github.com/hyperledger/besu/pull/8454/files |
This pr is stale because it has been open for 30 days with no activity. |
This pr was closed because it has been inactive for 14 days since being marked as stale. |
The first of a series of PRs to remove PoW from Besu.