Skip to content

Conversation

@mzumsande
Copy link
Contributor

After the introduction of wtxidrelay and sendaddrv2 messages during version handshake, extend p2p_leak.py test to reflect this.
Also, some minor fixes and doc improvements.

I also added a test that peers not completing the version handshake will be disconnected for timeout, as suggested by MarcoFalke in #19723 (comment).

After the introduction of wtxidrelay and sendaddrv2 messages during
version handshake, extend p2p_leak.py test to reflect this.
Also, some minor fixes and doc improvements.
@fanquake fanquake added the Tests label Mar 2, 2021
def bad_message(self, message):
self.unexpected_msg = True
self.log.info("should not have received message: %s" % message.msgtype)
print("should not have received message: %s" % message.msgtype)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason to replace self.log.info with print?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes - I think it would have caused a crash before because we are inside P2PInterface which doesn't have a log - only BitcoinTestFramework does.

@brunoerg
Copy link
Contributor

brunoerg commented Mar 3, 2021

Tested ACK a061a29

  • Tested on MacOS BigSur 11.1
  • Ran several times successfully
  • Docs improvements seem great

Screen Shot 2021-03-03 at 08 44 53

Copy link
Contributor

@theStack theStack left a comment

Choose a reason for hiding this comment

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

Tested ACK a061a29

@maflcko maflcko merged commit f7653eb into bitcoin:master Mar 5, 2021
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Mar 5, 2021
a061a29 test: bring p2p_leak.py up to date. (Martin Zumsande)

Pull request description:

  After the introduction of wtxidrelay and sendaddrv2 messages during version handshake, extend p2p_leak.py test to reflect this.
  Also, some minor fixes and doc improvements.

  I also added a test that peers not completing the version handshake will be disconnected for timeout, as suggested by MarcoFalke in bitcoin#19723 (comment).

ACKs for top commit:
  brunoerg:
    Tested ACK a061a29
  theStack:
    Tested ACK a061a29

Tree-SHA512: 26c601491fa8710fc972d1b8f15da6b387a95b42bbfb629ec4c668769ad3824b6dd6a33d97363bca2171e403d8d1ce08abf3e5c9cab34f98d53e0109b1c7a0e5
@mzumsande mzumsande deleted the 202103_p2p_leak branch March 22, 2021 18:03
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Aug 16, 2022
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