Skip to content

Commit

Permalink
Added help for setting up Stratum mining (hyperledger#7584)
Browse files Browse the repository at this point in the history
* Added help for setting up Stratum mining

Signed-off-by: ITStarMan100 <[email protected]>

* removed duplication from help message; fixed spotless

Signed-off-by: Sally MacFarlane <[email protected]>

---------

Signed-off-by: ITStarMan100 <[email protected]>
Signed-off-by: Sally MacFarlane <[email protected]>
Co-authored-by: Sally MacFarlane <[email protected]>
  • Loading branch information
ITStarMan100 and macfarla authored Sep 10, 2024
1 parent 9a570d4 commit 36454b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion besu/src/main/java/org/hyperledger/besu/RunnerBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ public Runner build() {
if (miningParameters.isStratumMiningEnabled()) {
if (!(miningCoordinator instanceof PoWMiningCoordinator powMiningCoordinator)) {
throw new IllegalArgumentException(
"Stratum server requires an PoWMiningCoordinator not "
"Stratum mining requires the network option(--network) to be set to CLASSIC. Stratum server requires a PoWMiningCoordinator not "
+ ((miningCoordinator == null) ? "null" : miningCoordinator.getClass().getName()));
}
stratumServer =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ public class MiningOptions implements CLIOptions<MiningParameters> {

@Option(
names = {"--miner-stratum-enabled"},
description = "Set if node will perform Stratum mining (default: ${DEFAULT-VALUE})")
description =
"Set if node will perform Stratum mining (default: ${DEFAULT-VALUE})."
+ " Compatible with Proof of Work (PoW) only."
+ " Requires the network option (--network) to be set to CLASSIC.")
private Boolean iStratumMiningEnabled = false;

@Option(
Expand Down

0 comments on commit 36454b4

Please sign in to comment.