Compact Block Tweaks (rebase of #8235) #8637
pull sipa wants to merge 4 commits into bitcoin:master from sipa:compactblocktweaks changing 4 files +24 −9-
sipa commented at 3:38 pm on August 31, 2016: member
-
fanquake added the label Tests on Aug 31, 2016
-
fanquake added the label P2P on Aug 31, 2016
-
in src/main.h: in 776f8ee008 outdated
87@@ -88,6 +88,9 @@ static const unsigned int BLOCK_STALLING_TIMEOUT = 2; 88 /** Number of headers sent in one getheaders result. We rely on the assumption that if a peer sends 89 * less than this number, we reached its tip. Changing this value is a protocol upgrade. */ 90 static const unsigned int MAX_HEADERS_RESULTS = 2000; 91+/** Maximum age (in blocks) of blocks we're willing to serve as compact blocks to peers 92+ * when requested. For older blocks, a regular BLOCK response will be sent. */ 93+static const int MAX_COMPACT_BLOCK_DEPTH = 5;
instagibbs commented at 1:40 pm on September 1, 2016:It’s been too long since I’ve looked at this code, but this sure seems close toMAX_CMPCTBLOCK_DEPTH
sipa commented at 1:49 pm on September 1, 2016:Where do you see MAX_CMPCTBLOCK_DEPTH?
laanwj commented at 1:51 pm on September 1, 2016:There’s a MAX_CMPCTBLOCK_DEPTH in thep2p-compactblocks.py
test, but I’d say it’s not a concern here.
instagibbs commented at 1:53 pm on September 1, 2016:ah right I noticed that then forgot when looking this morning. Forgive me.
sipa commented at 1:56 pm on September 1, 2016:Oh, right. I’ll make the constant names correspond.sipa force-pushed on Sep 1, 2016sipa commented at 3:01 pm on September 1, 2016: memberUpdated with exactly corresponding constant names between the tests and the implementation.gmaxwell commented at 9:46 pm on September 9, 2016: contributorNeeds rebasesipa force-pushed on Sep 19, 2016sipa commented at 11:39 am on September 19, 2016: memberRebased.gmaxwell commented at 3:49 pm on September 29, 2016: contributorACKTheBlueMatt commented at 9:13 pm on September 30, 2016: memberAt the risk of holding things up, you might want https://github.com/TheBlueMatt/bitcoin/commit/654f83f66cc31cbde9b3f14b1c30bdfa8821fd31 as well.TheBlueMatt commented at 3:30 pm on October 3, 2016: memberActually, I’ll do that separately (it will conflict with #8393, though that should probably be merged first to make backporting easier), utACK on the contents here.TheBlueMatt commented at 5:53 pm on October 6, 2016: memberVersion rebased on #8393 with the cs_main fix on top (I’ll pr that separately if you dont want to take it here): https://github.com/TheBlueMatt/bitcoin/commits/cmpctblocklaanwj commented at 8:12 am on October 11, 2016: memberTheBlueMatt commented at 3:27 pm on October 13, 2016: memberNeeds rebase (see rebased version at https://github.com/TheBlueMatt/bitcoin/commits/cmpctblock).sipa force-pushed on Oct 17, 2016sipa force-pushed on Oct 17, 2016Dont remove a "preferred" cmpctblock peer if they provide a block 02a337defdMore agressively filter compact block requests
Unit test adaptations by Pieter Wuille.
Add cmpctblock to debug help list b2e93a343eAlign constant names for maximum compact block / blocktxn depth 3ac6de0a04sipa force-pushed on Oct 17, 2016instagibbs commented at 2:49 pm on October 17, 2016: memberTheBlueMatt commented at 5:09 pm on October 18, 2016: memberutACK 3ac6de0a045cc9b2047ceb19af970e7ffbf905fabtcdrak commented at 5:58 pm on October 18, 2016: contributorutACK 3ac6de0a045cc9b2047ceb19af970e7ffbf905falaanwj merged this on Oct 18, 2016laanwj closed this on Oct 18, 2016
laanwj referenced this in commit 0b5a997acf on Oct 18, 2016MarcoFalke referenced this in commit 36e3b95103 on Nov 20, 2016MarcoFalke referenced this in commit 76ba1c9739 on Nov 20, 2016MarcoFalke referenced this in commit 3d23a0eaa3 on Nov 20, 2016MarcoFalke referenced this in commit 2cad5db6f7 on Nov 20, 2016gladcow referenced this in commit 09441b8e25 on Mar 2, 2018gladcow referenced this in commit 2a13e773ec on Mar 13, 2018gladcow referenced this in commit 138a84f1f5 on Mar 14, 2018gladcow referenced this in commit 44216c71e0 on Mar 15, 2018gladcow referenced this in commit a0af29c65c on Mar 15, 2018gladcow referenced this in commit 29a34a8d79 on Mar 15, 2018gladcow referenced this in commit 9072fcbe59 on Mar 24, 2018gladcow referenced this in commit cd2c4c6a7e on Apr 4, 2018UdjinM6 referenced this in commit bc45a2f87a on Apr 11, 2018lateminer referenced this in commit 1b6cba2d1f on Oct 18, 2018lateminer referenced this in commit 7796e0a7d9 on Oct 24, 2018andvgal referenced this in commit fd5c50bc2b on Jan 6, 2019CryptoCentric referenced this in commit dd3fd51204 on Feb 28, 2019MarcoFalke locked this on Sep 8, 2021
github-metadata-mirror
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-11-17 15:12 UTC
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-11-17 15:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me