Skip to content

test: Add test to check tx in the last block can be downloaded#27695

Merged
fanquake merged 2 commits into
bitcoin:masterfrom
maflcko:2305-test-tx-block-upload-
May 19, 2023
Merged

test: Add test to check tx in the last block can be downloaded#27695
fanquake merged 2 commits into
bitcoin:masterfrom
maflcko:2305-test-tx-block-upload-

Conversation

@maflcko

@maflcko maflcko commented May 18, 2023

Copy link
Copy Markdown
Member

If a peer received an inv about a transaction, which was included in a block before receiving the corresponding getdata, it can be beneficial to send this transaction to the peer to aid compact block relay.

Add a test for this to avoid breaking it in the future.

@DrahtBot

DrahtBot commented May 18, 2023

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 sdaftuar, instagibbs

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 test: Add test to check tx in the last block can be downloaded test: Add test to check tx in the last block can be downloaded May 18, 2023
@DrahtBot DrahtBot added the Tests label May 18, 2023
@fanquake fanquake requested a review from theStack May 18, 2023 10:02
@sdaftuar

Copy link
Copy Markdown
Member

ACK fa4c16b

@fanquake fanquake requested a review from instagibbs May 18, 2023 15:19

@instagibbs instagibbs left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ACK fa4c16b

broke test intentionally by disabling non-mempool checks in PeerManagerImpl::FindTxForGetData, resulted in expected failure

@fanquake fanquake merged commit 7be7e62 into bitcoin:master May 19, 2023
@maflcko maflcko deleted the 2305-test-tx-block-upload- branch May 19, 2023 10:07
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request May 19, 2023
… be downloaded

fa4c16b test: Add test to check tx in the last block can be downloaded (MarcoFalke)
fadc849 test: Split up test_notfound_on_unannounced_tx test case (MarcoFalke)

Pull request description:

  If a peer received an `inv` about a transaction, which was included in a block before receiving the corresponding `getdata`, it can be beneficial to send this transaction to the peer to aid compact block relay.

  Add a test for this to avoid breaking it in the future.

ACKs for top commit:
  sdaftuar:
    ACK fa4c16b
  instagibbs:
    ACK fa4c16b

Tree-SHA512: 1ec16dcc216dd29c849928e753158d45c409612e9ac528db16e5af465bb5b69cd42241ac6f67e5a4583b8e558eeba49fa0a0889a4247b3fb0053b2758eec9490
@bitcoin bitcoin locked and limited conversation to collaborators May 18, 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