No description provided.
don't enforce maxuploadtarget's disconnect for whitelisted peers #6984
pull jonasschnelli wants to merge 3 commits into bitcoin:master from jonasschnelli:2015/11/maxupload_whitebind changing 4 files +45 −5-
jonasschnelli commented at 9:13 AM on November 11, 2015: contributor
- jonasschnelli force-pushed on Nov 11, 2015
- jonasschnelli force-pushed on Nov 11, 2015
-
in src/main.cpp:None in 3fbe4933ef outdated
3855 | @@ -3856,8 +3856,9 @@ void static ProcessGetData(CNode* pfrom, const Consensus::Params& consensusParam 3856 | } 3857 | } 3858 | // disconnect node in case we have reached the outbound limit for serving historical blocks 3859 | + // never disconnect whitelisted nodes 3860 | static const int nOneWeek = 7 * 24 * 60 * 60; // assume > 1 week = historical 3861 | - if (send && CNode::OutboundTargetReached(true) && ( ((pindexBestHeader != NULL) && (pindexBestHeader->GetBlockTime() - mi->second->GetBlockTime() > nOneWeek)) || inv.type == MSG_FILTERED_BLOCK) ) 3862 | + if (send && CNode::OutboundTargetReached(true) && ( ((pindexBestHeader != NULL) && (pindexBestHeader->GetBlockTime() - mi->second->GetBlockTime() > nOneWeek)) || inv.type == MSG_FILTERED_BLOCK) && !pfrom->fWhitelisted )
sipa commented at 9:42 AM on November 11, 2015:Unnecessary space before )
jonasschnelli commented at 9:43 AM on November 11, 2015:True. Force-push removed.
sipa commented at 9:42 AM on November 11, 2015: memberutACK
jonasschnelli force-pushed on Nov 11, 2015gmaxwell commented at 9:51 AM on November 11, 2015: contributorutACK
fanquake commented at 10:55 AM on November 11, 2015: memberutACK @jonasschnelli has documentation written, it just needs to be included here.
laanwj added the label P2P on Nov 11, 2015laanwj commented at 1:57 PM on November 11, 2015: memberConcept ACK
instagibbs commented at 1:27 PM on November 12, 2015: memberutACK
in qa/rpc-tests/maxuploadtarget.py:None in 4566e5b7c8 outdated
259 | + test_nodes[i].add_connection(connections[i]) 260 | + 261 | + NetworkThread().start() # Start up network handling in another thread 262 | + [x.wait_for_verack() for x in test_nodes] 263 | + 264 | + #retrieve 20 blocks which should be enought to break the 1MB limit
sipa commented at 1:37 PM on November 12, 2015:nit: enough
jonasschnelli commented at 1:40 PM on November 12, 2015:Thanks. Fixed.
sipa commented at 1:38 PM on November 12, 2015: memberutACK
jonasschnelli force-pushed on Nov 12, 2015instagibbs cross-referenced this on Nov 12, 2015 from issue add (max)uploadtarget infos to getnettotals RPC help by jonasschnelliin src/main.cpp:None in 5a2984f5c6 outdated
3855 | @@ -3856,8 +3856,9 @@ void static ProcessGetData(CNode* pfrom, const Consensus::Params& consensusParam 3856 | } 3857 | } 3858 | // disconnect node in case we have reached the outbound limit for serving historical blocks 3859 | + // never disconnect whitelisted nodes
MarcoFalke commented at 4:42 PM on November 13, 2015:Is this already mentioned in the release notes and/or documentation?
gmaxwell commented at 7:59 PM on November 13, 2015:I think it's more or less adequately explained by the documentation for whitelist.
Though the release note for maxupload target could mention it too.
gmaxwell commented at 8:00 PM on November 13, 2015: contributorAlso tested, works good. (I gave a utACK above). Please update docs/release notes as you see fit.
don't enforce maxuploadtargets disconnect for whitelisted peers d61fcff071[docs] rename reducetraffic.md to reduce-traffic.md 5760749ed8jonasschnelli force-pushed on Nov 13, 2015jonasschnelli commented at 8:14 PM on November 13, 2015: contributorI have added a short documentation in the
release-notes.mdand in thereduce-traffic.mddoc (feel free to overhaul). Also i smuggled in a rename fromreducetraffic.mdtoreduce-traffic.md(which would be silly to do in a separated PR). All other doc filename use the same pattern.add documentation for exluding whitelistes peer from maxuploadtarget e495ed5f08jonasschnelli force-pushed on Nov 14, 2015jonasschnelli commented at 7:43 AM on November 14, 2015: contributorThanks. Fixed.
gmaxwell merged this on Nov 14, 2015gmaxwell closed this on Nov 14, 2015gmaxwell referenced this in commit 9ffc687288 on Nov 14, 2015rebroad cross-referenced this on Aug 26, 2016 from issue Provide bloom services to whitelisted nodes. by rebroadstr4d cross-referenced this on Jul 14, 2017 from issue Bitcoin 0.12 P2P/Net PRs 1 by str4dstr4d cross-referenced this on Dec 19, 2017 from issue Introduce -maxuploadtarget by str4dzkbot referenced this in commit fd0d435f72 on Feb 18, 2021zkbot referenced this in commit 1d378b1eb0 on Feb 18, 2021bitcoin locked this on Sep 8, 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: 2026-05-20 06:55 UTC