-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #997: Add RPCs for external RandomX mining
9974e54 Add RPCs for external RandomX mining (Johannes Westphal) Pull request description: ### Problem ### - No external RandomX mining possible. - Mining multiple algorithms at the same time is currently not possible. - The algorithm `getblocktemplate` RPC uses for its blocks depends on the value the user selects for mining in the GUI of the wallet / in the config. ### Root Cause ### Not implemented yet. ### Solution ### The solution was to: 1. Add an `algo` parameter to the `getblocktemplate` RPC which overrides any mining algorithm specified in the config / GUI. 2. Add a new RPC `rxrpcsb` for submitting randomx blocks, analogous to `pprpcsb`. This makes it possible to mine at the same time progpow, randomx and sha256d externally, independently of what you may additionally mine using the wallet. ### Bounty PR ### ? ### Bounty Payment Address ## `sv1qqpjsrc60t60jhaywj5krmwla52ska70twc7wun6qnee65guxhvtxegpqwhuxypra4jn3pq86s24ryltcw6g2ss4573hyqac9u4g23m9mvxpyqqqwny49k` ### Unit Testing Results ### Tested by mining at the same time progpow blocks with t-rex miner and randomx blocks with xmrig, where both found at least one block. Tree-SHA512: 7472c6e21198aca3fbe511271816d2779d9d5c1407e2e108768be22d1ca94ecbc70839f80631253c5946c42803ce678a550daa2dd3160d2ba9963c674a5f8f7b
- Loading branch information
Showing
7 changed files
with
314 additions
and
168 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
Large diffs are not rendered by default.
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
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