-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ETCM-759] Refactor mining by adding a PowMiningCoordinator that hand…
…les both Ethash and Keccak mining coordination * [ETCM-759] Rename EthashBlockCreator to PoWBlockCreator * [ETCM-759] Rename MinerResponse to MockedMinerResponse * [ETCM-759] Add PoWMiningCoordinator * [ETCM-759] Update PowConsensus to use new PoWMiningCoordinator instead of EthashMiner. PoWMiningCoordinator is a typed actor and MockedMiner is a classic actor, that's the reason for the extra code added. * [ETCM-759] Modify EthashMiner to only mine on demand, managed by the PoWMiningManager * [ETCM-759] Extract code to mining with Keccak into an actor called KeccakMiner. (Mining on demand, managed by the PoWMiningManager) * [ETCM-759] Adjust MinerSpecSetup to contain shared setup between mock, keccak, ethash miners and the coordinator * [ETCM-759] Rename PoWMinerCooordinatorSpec to PoWMiningCoordinatorSpec * [ETCM-759] Add assertion in Ethash and Keccak miners spec M-759] Fix PoWMiningCoordinatorSpec * [ETCM-759] Renamed DoMining to MineNext in PoWMiningCoordinator * [ETCM-759] Rename StartMining(mode: MiningMode) to SetMiningMode((mode: MiningMode)) in PoWMiningCoordinator
- Loading branch information
Leonor Boga
authored
May 20, 2021
1 parent
0146d23
commit b81d183
Showing
29 changed files
with
1,209 additions
and
541 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
205 changes: 0 additions & 205 deletions
205
src/main/scala/io/iohk/ethereum/consensus/pow/EthashMiner.scala
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
src/main/scala/io/iohk/ethereum/consensus/pow/MinerProtocol.scala
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
src/main/scala/io/iohk/ethereum/consensus/pow/MinerUtils.scala
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.