Skip to content

Conversation

@jtimon
Copy link
Contributor

@jtimon jtimon commented Jan 23, 2015

Separated from #5681 (as explained there) to also include #5696 and to become a single commit cleanup (after those two and maybe other preparations have been merged).

@jtimon jtimon force-pushed the main_includes2 branch 2 times, most recently from 2d5a18d to e962419 Compare February 3, 2015 23:05
@jtimon jtimon changed the title Cleanup: Don't include main.h from any other header Cleanup includes after some code movements around (mostly from main) Feb 6, 2015
@jtimon jtimon changed the title Cleanup includes after some code movements around (mostly from main) Cleanup includes after some code movements (mostly from main) Feb 6, 2015
@jtimon
Copy link
Contributor Author

jtimon commented Feb 13, 2015

closing for now

@jtimon jtimon closed this Feb 13, 2015
@jtimon jtimon reopened this Jul 5, 2015
@jtimon jtimon changed the title Cleanup includes after some code movements (mostly from main) Includes: Move some from main.h to main.cpp and compile Jul 5, 2015
@jtimon
Copy link
Contributor Author

jtimon commented Jul 5, 2015

I know this will be more interesting after #6051 and #6335 but why keep waiting?
This is good already.

@Diapolo
Copy link

Diapolo commented Jul 5, 2015

@jtimon But it fails Travis :-/.

@jtimon
Copy link
Contributor Author

jtimon commented Jul 5, 2015

Fixed --disable-wallet build.

@jtimon jtimon changed the title Includes: Move some from main.h to main.cpp and compile Includes: Cleanup includes Jul 5, 2015
@jtimon
Copy link
Contributor Author

jtimon commented Jul 5, 2015

Updated. Now also cleaning up net.h and wallet/ a little bit. Of course, adding the missing includes that are discovered.

@jtimon jtimon force-pushed the main_includes2 branch 3 times, most recently from 1ad55f9 to a19bf34 Compare July 5, 2015 21:18
@jtimon
Copy link
Contributor Author

jtimon commented Jul 5, 2015

Sorry, updated again.

@jtimon
Copy link
Contributor Author

jtimon commented Jul 6, 2015

Rebased

@jgarzik
Copy link
Contributor

jgarzik commented Jul 6, 2015

concept ACK - however this sort of PR needs constant rebasing. Usually better to break it up into even smaller chunks than modifying 40+ files in one go.

@jtimon
Copy link
Contributor Author

jtimon commented Jul 7, 2015

Yes, that's why I try to avoid making these cleanups after the code moves that make them possible and not at the same time (so that the moves are less painful). But they keep accumulating...
The need for constant rebases and lack of review is why I closed it last time, and When I get bored of I will likely close it once again.
But, yes, smaller pieces (maybe small enough to get into the trivial branch while keeping the trivial branch itself maintainable) is a good suggestion, although I would really prefer that one day it just got merged once and for all (innocent me).

@Diapolo
Copy link

Diapolo commented Jul 7, 2015

I always think this is a valuable work, but doesn't get much review time or seems to trivial for getting reviewed. Perhaps the trivial branch is the better place, but IMHO the trivial cycles should be shorter also.

@jgarzik
Copy link
Contributor

jgarzik commented Jul 23, 2015

ACK. Merge or close.

jtimon added 2 commits July 23, 2015 21:10
-Move from .h to .cpp: in main, net and wallet
-Remove unnecessary #include "main.h"
-Cleanup some wallet files includes
@jtimon
Copy link
Contributor Author

jtimon commented Jul 23, 2015

Sorry, I didn't realized this needed a trivial rebase (a using namespace std near a newly added #include <boost/foreach.hpp> in walletmodel.cpp).

@laanwj laanwj merged commit 60c8bac into bitcoin:master Jul 27, 2015
laanwj added a commit that referenced this pull request Jul 27, 2015
60c8bac Includes: Cleanup around net main and wallet (Jorge Timón)
9dd793f TRIVIAL: Missing includes (Jorge Timón)
@laanwj
Copy link
Member

laanwj commented Jul 27, 2015

ACK - but let's do this only once per major release

@jtimon
Copy link
Contributor Author

jtimon commented Jul 28, 2015

Limiting to at most one big include cleanup per major release sounds reasonable.
I'm not sure I will ever do another one as big as this one though (and smaller ones can be made part of the relevant PR or via the trivial branch).

@jtimon jtimon mentioned this pull request Apr 11, 2017
str4d pushed a commit to str4d/zcash that referenced this pull request Nov 9, 2017
* -maxuploadtarget can be set in MiB
* if <limit> - ( time-left-in-24h-cycle / 600 * MAX_BLOCK_SIZE ) has reach, stop serve blocks older than one week and filtered blocks
* no action if limit has reached, no guarantee that the target will not be  surpassed
* add outbound limit informations to rpc getnettotals

Zcash: Also includes a cleanup from bitcoin/bitcoin#5697
str4d pushed a commit to str4d/zcash that referenced this pull request Dec 19, 2017
* -maxuploadtarget can be set in MiB
* if <limit> - ( time-left-in-24h-cycle / 600 * MAX_BLOCK_SIZE ) has reach, stop serve blocks older than one week and filtered blocks
* no action if limit has reached, no guarantee that the target will not be  surpassed
* add outbound limit informations to rpc getnettotals

Zcash: Also includes a cleanup from bitcoin/bitcoin#5697
str4d pushed a commit to str4d/zcash that referenced this pull request Apr 5, 2018
* -maxuploadtarget can be set in MiB
* if <limit> - ( time-left-in-24h-cycle / 600 * MAX_BLOCK_SIZE ) has reach, stop serve blocks older than one week and filtered blocks
* no action if limit has reached, no guarantee that the target will not be  surpassed
* add outbound limit informations to rpc getnettotals

Zcash: Also includes a cleanup from bitcoin/bitcoin#5697
str4d pushed a commit to str4d/zcash that referenced this pull request Jun 27, 2019
* -maxuploadtarget can be set in MiB
* if <limit> - ( time-left-in-24h-cycle / 600 * MAX_BLOCK_SIZE ) has reach, stop serve blocks older than one week and filtered blocks
* no action if limit has reached, no guarantee that the target will not be  surpassed
* add outbound limit informations to rpc getnettotals

Zcash: Also includes a cleanup from bitcoin/bitcoin#5697
zkbot added a commit to zcash/zcash that referenced this pull request Feb 17, 2021
Use SipHash for node eviction

Backport of bitcoin/bitcoin#8173

Commits are listed in stack order.

- pick bitcoin/bitcoin@eebc232187
- pick bitcoin/bitcoin@888483098e
- pick bitcoin/bitcoin@c31b24f745
- pick bitcoin/bitcoin@9bf156bb9e
- pick bitcoin/bitcoin@053930ffc4
   - missing bitcoin/bitcoin#5697 (not a candidate for direct inclusion), using pieces directly
   - conflicts with #1258 which it removes part of (this is ok)
      - ignore bitcoin/bitcoin#6374
      - requires bitcoin/bitcoin#7906, or at least bitcoin/bitcoin@cca221fd21
         - pick bitcoin/bitcoin@cca221fd21
   - conflicts with bitcoin/bitcoin#7181, not needed until later if at all
str4d pushed a commit to str4d/zcash that referenced this pull request Feb 17, 2021
* -maxuploadtarget can be set in MiB
* if <limit> - ( time-left-in-24h-cycle / 600 * MAX_BLOCK_SIZE ) has reach, stop serve blocks older than one week and filtered blocks
* no action if limit has reached, no guarantee that the target will not be  surpassed
* add outbound limit informations to rpc getnettotals

Zcash: Also includes a cleanup from bitcoin/bitcoin#5697
@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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants