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

[net processing] Swap out signals for an interface class #2417

Merged

Conversation

furszy
Copy link

@furszy furszy commented Jun 12, 2021

Another decouple from #2411. Coming from bitcoin#10756.

See individual commits.
Benefits:

  • Allows us to begin moving stuff out of CNode and into CNodeState.
  • Drops boost dependency and overhead
  • Drops global signal registration
  • Friendlier backtraces

There are a few too many edge-cases here to make this a scripted diff.

The following commits will move a few functions into PeerLogicValidation, where
the local connman instance can be used. This change prepares for that usage.

Adapted from btc@28f11e9406b185dc87144f1f29af0d93eb115b4e
@furszy furszy self-assigned this Jun 12, 2021
@furszy furszy added the Network label Jun 12, 2021
@furszy furszy added this to the 6.0.0 milestone Jun 12, 2021
furszy and others added 2 commits June 12, 2021 15:38
Drop boost signals in favor of a stateful class. This will allow the message
processing loop to actually move to net_processing in a future step.

Adapted from btc@8ad663c1fa88d68843e45580deced56112343183
The copy in PeerLogicValidation can be used instead.
@furszy furszy force-pushed the 2021_net_processing_swap_out_signals branch from 085e1af to 21f05c1 Compare June 12, 2021 18:38
Copy link

@random-zebra random-zebra left a comment

Choose a reason for hiding this comment

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

ACK 21f05c1

Copy link
Collaborator

@Fuzzbawls Fuzzbawls left a comment

Choose a reason for hiding this comment

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

ACK 21f05c1

@furszy furszy merged commit f932b2d into PIVX-Project:master Jul 1, 2021
@furszy furszy deleted the 2021_net_processing_swap_out_signals branch November 29, 2022 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants