Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move-only: Version handshake to libtest_util #25591

Merged
merged 2 commits into from
Jul 12, 2022

Conversation

maflcko
Copy link
Member

@maflcko maflcko commented Jul 12, 2022

The version handshake after setting up a peer is an integral part of (unit) testing net processing logic.

Thus, make the helper accessible in libtest_util.

Also, remove the peerman argument from FillNode, as it must be equal to connman's peerman, which can then be used instead.

@DrahtBot
Copy link
Contributor

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

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #25515 ([draft] PeerManager unit tests by dergoegge)
  • #25514 (net processing: Move CNode::nServices and CNode::nLocalServices to Peer by dergoegge)
  • #25284 ([WIP] consensus: Remove dependency on net (BIP 155 / ADDRV2_FORMAT) by MarcoFalke)
  • #24170 (p2p, rpc: Manual block-relay-only connections with addnode by mzumsande)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@dergoegge
Copy link
Member

ACK fa4be8e

@maflcko maflcko merged commit dd13d7b into bitcoin:master Jul 12, 2022
@maflcko maflcko deleted the 2207-hand-util-🕷 branch July 12, 2022 15:07
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Jul 12, 2022
fa4be8e move-only: InitializeNode to handshake helper (MacroFake)
fa70989 move-only: Version handshake to libtest_util (MacroFake)

Pull request description:

  The version handshake after setting up a peer is an integral part of (unit) testing net processing logic.

  Thus, make the helper accessible in libtest_util.

  Also, remove the peerman argument from `FillNode`, as it must be equal to connman's peerman, which can then be used instead.

ACKs for top commit:
  dergoegge:
    ACK fa4be8e

Tree-SHA512: 8296399dc2c29196bd56584c9b61f1c5a088f96dd3438b07b84e1acf525d867f1e37fdfdeede8a831add25848cda0c221ce3fb873e5ae5ca805a1765aa08eb12
@bitcoin bitcoin deleted a comment Jul 13, 2022
@bitcoin bitcoin locked and limited conversation to collaborators Jul 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants