hyperledger / besu

An enterprise-grade Java-based, Apache 2.0 licensed Ethereum client https://wiki.hyperledger.org/display/besu
https://www.hyperledger.org/projects/besu
Apache License 2.0
1.48k stars 803 forks source link

Stratum Mining parameter setting #7514

Closed ITStarMan100 closed 6 days ago

ITStarMan100 commented 3 weeks ago

Description :

Run besu on Holesky testnet

Since Holesky is a proof-of-stake testnet, there must be an accurate error message that the Stratum Mining Server cannot be activated.

Or accurate information is required for the Stratum Mining parameter setting in the help of BESU.

Steps to Reproduce (Bug)

  1. Run the BESU node as follows:
/bin/besu \ --network=holesky \ --p2p-port=30303 \ --rpc-http-port=8545 \ --rpc-http-enabled=true \ --rpc-http-cors-origins="*" \ --engine-rpc-port=8551 \ --max-peers=25 \ --rpc-http-enabled=true \ --sync-mode=SNAP \ --logging=INFO \ --data-storage-format=BONSAI \ --Xbonsai-limit-trie-logs-enabled=true \ --data-path="/var/lib/besu" \ --rpc-http-api=ETH,NET,WEB3,MINER \ --miner-stratum-enabled=true \ --miner-stratum-host="0.0.0.0" \ --miner-stratum-port=8548 \ --miner-enabled=true \ --miner-coinbase="0xf05D10ed0504Cbb0A319f9d38D1e3Db56F661907" \ --engine-jwt-secret=/secrets/jwtsecret 2. Error logging ... ... ... 2024-06-25 10:07:23.653+00:00 | main | INFO | RunnerBuilder | Detecting NAT service. 2024-06-25 10:07:23.725+00:00 | main | ERROR | Besu | Failed to start Besu java.lang.IllegalArgumentException: Stratum server requires an PoWMiningCoordinator not org.hyperledger.besu.consensus.merge.blockcreation.TransitionCoordinator Frequency: 100% Versions (Add all that apply) Software version: 24.5.1 Java version: openjdk-java-17 OS Name & Version: Ubuntu 22, linux-x86_64
ITStarMan100 commented 2 weeks ago

I am modifying source code and testing.