Skip to content

p2p: Unconditionally return when compact block status == READ_STATUS_FAILED - #27743

Merged
fanquake merged 1 commit into
bitcoin:masterfrom
instagibbs:parallel_fail_fix
May 25, 2023
Merged

fanquake merged 1 commit into
bitcoin:masterfrom
instagibbs:parallel_fail_fix

Conversation

@instagibbs

Copy link
Copy Markdown
Member

Fixes #27626 (comment) which would have resulted in wasted bandwidth every once in a while.

@Sjors

Sjors commented May 24, 2023

Copy link
Copy Markdown
Member

utACK d972695

@mzumsande mzumsande left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ACK d972695
Agree that it doesn't make sense to continue and send a BLOCKTXN here.

@DrahtBot

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK Sjors, mzumsande

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

@DrahtBot DrahtBot changed the title Unconditionally return when compact block status == READ_STATUS_FAILED p2p: Unconditionally return when compact block status == READ_STATUS_FAILED May 25, 2023
@DrahtBot DrahtBot added the P2P label May 25, 2023
@fanquake
fanquake merged commit e434320 into bitcoin:master May 25, 2023
@fanquake

Copy link
Copy Markdown
Member

Backported in #27752.

Sjors pushed a commit to Sjors/bitcoin that referenced this pull request May 27, 2023
fanquake pushed a commit to fanquake/bitcoin that referenced this pull request Jun 16, 2023
fanquake added a commit that referenced this pull request Jul 4, 2023
b8ad322 Unconditionally return when compact block status == READ_STATUS_FAILED (Greg Sanders)
cdd3de0 Add tests for parallel compact block downloads (Greg Sanders)
e66a5cb Support up to 3 parallel compact block txn fetchings (Greg Sanders)
d1a93f5 Only request full blocks from the peer we thought had the block in-flight (Greg Sanders)
38e3af9 Convert mapBlocksInFlight to a multimap (Greg Sanders)
a45159b Remove nBlocksInFlight (Greg Sanders)
722361e alias BlockDownloadMap for mapBlocksInFlight (Greg Sanders)

Pull request description:

  Backports:
  * #27626
  * #27743

ACKs for top commit:
  instagibbs:
    utACK b8ad322
  ajtowns:
    ACK b8ad322 ; confirmed patches are clean cherry-picks from master, and already tested patches prior to 25.0 release

Tree-SHA512: 438901496a5ed927662e62f936e3d1e7ffb727cb235869854983e8e29a68e144eb3bff307d9fc3ae785fb276b67a216b1cce397689252ca49c5d761efc1380ac
@bitcoin bitcoin locked and limited conversation to collaborators May 24, 2024
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.

5 participants