Skip to content

Conversation

maflcko
Copy link
Member

@maflcko maflcko commented Sep 12, 2015

This PR combines several trivial changes. The commits cover various locations in the source code so it is best to review them one-by-one.

@@ -120,6 +120,7 @@ UniValue generate(const UniValue& params, bool fHelp)
"\nMine blocks immediately (before the RPC call returns)\n"
"\nNote: this function can only be used on the regtest network\n"
"1. numblocks (numeric, required) How many blocks are generated immediately.\n"
"\nArguments:\n"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be above L122.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, rebase mistake. Thank you.

@maflcko maflcko force-pushed the MarcoFalke-2015-cleanup01 branch 3 times, most recently from 9f4ba7e to 3bf7621 Compare September 12, 2015 17:17
@jonasschnelli
Copy link
Contributor

Maybe try to distinct between the code and the docs/images changes? Mixed PRs are hard to review and merge.

Files: src/qt/res/icons/bitcoin.png, src/qt/res/icons/toolbar.png
Copyright: Bitboy (optimized for 16x16 by Wladimir van der Laan)
Files: src/qt/res/icons/bitcoin.*, src/qt/res/src/bitcoin.svg
Copyright: Bitboy
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add my name here because the svg was not done by Bitboy and contains some shadows, gradients, etc.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for letting me know. I fixed that and created another PR. There will be more noise but I think it is easier to discuss or merge when the PRs are split.

@maflcko maflcko force-pushed the MarcoFalke-2015-cleanup01 branch from 3bf7621 to 51ff777 Compare September 13, 2015 14:06
@maflcko maflcko changed the title [cleanup] icons, comments, misc. [trivial] Cleanup init.cpp and rpc message Sep 13, 2015
@dcousens
Copy link
Contributor

utACK

@jgarzik
Copy link
Contributor

jgarzik commented Sep 16, 2015

ut ACK

@paveljanik
Copy link
Contributor

utACK

1 similar comment
@btcdrak
Copy link
Contributor

btcdrak commented Sep 18, 2015

utACK

@laanwj laanwj added the Docs label Sep 23, 2015
@@ -295,7 +295,7 @@ std::string HelpMessage(HelpMessageMode mode)
strUsage += HelpMessageOpt("-conf=<file>", strprintf(_("Specify configuration file (default: %s)"), "bitcoin.conf"));
if (mode == HMM_BITCOIND)
{
#if !defined(WIN32)
#ifndef WIN32
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the point of this change? #if !defined(XX) and #ifndef XX are equivalent, with the difference that the first can be used as part of expressions, but I don't see a reason to change it around.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The other six usages are #ifndef and it was a different author who chose the #if !defined() twice. But I can remove those if you prefer less diff over consistency.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just don't see it as very constructive - e.g. a) a lot of pull requests hit this code due to adding/removing arguments, and b) there's an infinite number of commits like this possible, the next person may change them to #if ! again for aesthetic reasons.

But no need to revert it, the other changes in this pull are useful, so I'm just going to merge...

@laanwj laanwj merged commit 51ff777 into bitcoin:master Sep 24, 2015
laanwj added a commit that referenced this pull request Sep 24, 2015
51ff777 [trivial] Fix rpc message "help generate" (MarcoFalke)
4c3cab1 [trivial] init cleanup (MarcoFalke)
@maflcko maflcko deleted the MarcoFalke-2015-cleanup01 branch September 24, 2015 18:09
maflcko pushed a commit to maflcko/bitcoin-core that referenced this pull request Mar 14, 2016
Github-Pull: bitcoin#6664
Rebased-From: 4c3cab1
zkbot added a commit to zcash/zcash that referenced this pull request Dec 18, 2019
Bitcoin 0.12 cleanup PRs 2

Cherry-picked from the following upstream PRs:

- bitcoin/bitcoin#6631
- bitcoin/bitcoin#6664
  - Only the first commit (we already had the second through bitcoin/bitcoin#6825).
- bitcoin/bitcoin#6669
- bitcoin/bitcoin#6887
  - Only the non-QT parts.
- bitcoin/bitcoin#6962
- bitcoin/bitcoin#6822
  - Only first and third commits (we already had the second through an earlier PR).
- bitcoin/bitcoin#7136
  - Excludes Travis CI changes, and fixes to documents we don't have anymore.
- bitcoin/bitcoin#7084
- bitcoin/bitcoin#7509
- bitcoin/bitcoin#7617
- bitcoin/bitcoin#7726

Part of #2074.
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants