Skip to content

Conversation

@dsaveliev
Copy link
Member

@dsaveliev dsaveliev commented Mar 10, 2019

p2p_sendheaders has a race in part 1.3.

part 1.2 sends a block to the node over the 'test_node' connection, but
doesn't wait for an inv to be received on the 'inv_node' connection. If
we get to part 1.3 before that inv has been received, then the
subsequent call to check_last_inv_announcement could fail.
@dsaveliev dsaveliev added the bug A problem of existing functionality label Mar 10, 2019
@dsaveliev dsaveliev added this to the 0.1 milestone Mar 10, 2019
Copy link
Member

@thothd thothd left a comment

Choose a reason for hiding this comment

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

Seems like the code is unchanged from Bitcoin Core, did you cherry pick it? since GitHub shows like you committed it ("newbery authored and dsaveliev committed")

@dsaveliev
Copy link
Member Author

dsaveliev commented Mar 10, 2019

Yes, exactly, this is a cherry-pick of bitcoin-core commit without any changes from my side

Copy link
Member

@scravy scravy left a comment

Choose a reason for hiding this comment

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

utACK 1753d5f

Copy link
Member

@thothd thothd left a comment

Choose a reason for hiding this comment

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

cool yeah it's the same commit hash utACK 1753d5f

@scravy
Copy link
Member

scravy commented Mar 11, 2019

I'll merge-merge this then.

@scravy scravy merged commit ea638d6 into dtr-org:master Mar 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug A problem of existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants