[rpc] remove dead mining code #15748
pull jnewbery wants to merge 2 commits into bitcoin:master from jnewbery:2019_04_simplify_generate changing 6 files +7 −40-
jnewbery commented at 7:48 pm on April 4, 2019: memberRemoves dead code from after the generate method was removed
-
DrahtBot added the label Build system on Apr 4, 2019
-
DrahtBot added the label Consensus on Apr 4, 2019
-
DrahtBot added the label Mining on Apr 4, 2019
-
DrahtBot added the label RPC/REST/ZMQ on Apr 4, 2019
-
DrahtBot added the label Validation on Apr 4, 2019
-
DrahtBot added the label Wallet on Apr 4, 2019
-
MarcoFalke removed the label Build system on Apr 4, 2019
-
MarcoFalke removed the label Consensus on Apr 4, 2019
-
MarcoFalke removed the label Validation on Apr 4, 2019
-
in src/rpc/mining.cpp:102 in 79ef6bc29a outdated
98@@ -98,7 +99,7 @@ static UniValue getnetworkhashps(const JSONRPCRequest& request) 99 return GetNetworkHashPS(!request.params[0].isNull() ? request.params[0].get_int() : 120, !request.params[1].isNull() ? request.params[1].get_int() : -1); 100 } 101 102-UniValue generateBlocks(std::shared_ptr<CReserveScript> coinbaseScript, int nGenerate, uint64_t nMaxTries, bool keepScript) 103+static UniValue generateBlocks(CScript& coinbase_script, int nGenerate, uint64_t nMaxTries)
Empact commented at 9:39 pm on April 4, 2019:nit:coinbase_script
could beconst
BelfordZ commented at 9:54 pm on April 4, 2019:Just out of curiosity, how come the use of mixed casing?
coinbase_script
,nMaxTries
all in the same function?
Empact commented at 4:07 am on April 5, 2019:Variable (including function arguments) and namespace names are all lowercase, and may use _ to separate words (snake_case). https://github.com/bitcoin/bitcoin/blob/master/doc/developer-notes.md#coding-style-c
Patchsets should always be focused. For example, a pull request could add a feature, fix a bug, or refactor code; but not a mixture. https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md
jnewbery commented at 4:04 pm on April 10, 2019:Changed. Thanks!in src/rpc/mining.cpp:30 in 79ef6bc29a outdated
25@@ -27,6 +26,8 @@ 26 #include <validationinterface.h> 27 #include <versionbitsinfo.h> 28 #include <warnings.h> 29+#include <script/script.h> 30+#include <univalue.h>
Empact commented at 9:40 pm on April 4, 2019:nit: could sort includes
jnewbery commented at 4:04 pm on April 10, 2019:Donepracticalswift commented at 9:23 am on April 5, 2019: contributorConcept ACK
Good catch!
DrahtBot commented at 3:12 pm on April 10, 2019: memberThe following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Conflicts
Reviewers, this pull request conflicts with the following ones:
- #15777 ([docs] Add doxygen comments for keypool classes by jnewbery)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
[rpc] simplify generate RPC
Removes dead code from after the generate method was removed
[cleanup] Remove unused CReserveKey 1b46a4889fjnewbery force-pushed on Apr 10, 2019jnewbery commented at 4:04 pm on April 10, 2019: memberrebasedMarcoFalke commented at 4:18 pm on April 10, 2019: memberutACK 1b46a4889f894d63062454fb9f4c2e88689a9d75meshcollider commented at 0:49 am on April 14, 2019: contributorscravy commented at 0:52 am on April 14, 2019: contributorutACK 1b46a48Empact commented at 2:04 am on April 14, 2019: membermeshcollider merged this on Apr 14, 2019meshcollider closed this on Apr 14, 2019
meshcollider referenced this in commit adc55dbac5 on Apr 14, 2019jnewbery deleted the branch on Apr 14, 2019jasonbcox referenced this in commit db8bab35b2 on Jun 30, 2020jasonbcox referenced this in commit 08f90b135f on Jun 30, 2020vijaydasmp referenced this in commit 9d88e88337 on Oct 16, 2021vijaydasmp referenced this in commit f8e0558dae on Oct 16, 2021vijaydasmp referenced this in commit 005e729f29 on Nov 12, 2021vijaydasmp referenced this in commit e3f7423e4c on Nov 13, 2021vijaydasmp referenced this in commit 40ce1372ea on Nov 15, 2021vijaydasmp referenced this in commit 6c20a7bd70 on Nov 16, 2021vijaydasmp referenced this in commit b940f0d8e9 on Nov 22, 2021DrahtBot locked this on Dec 16, 2021
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-21 15:12 UTC
More mirrored repositories can be found on mirror.b10c.me