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][GUI][RPC] Add enable/disable network activity feature #2606

Merged
merged 5 commits into from
Dec 29, 2021

Conversation

furszy
Copy link

@furszy furszy commented Oct 18, 2021

Allowing the user/test to stop and restart the network activity.

Pretty useful for some manual isolation test cases.

When the network activity is disabled the client will close all connections, stop accepting inbound connections, and stop opening new outbound connections, until the network activity is reenabled.

Quick demo video:

network_activity.mp4

TODO:
Add release-notes for the new RPC command and the GUI control.

@furszy furszy self-assigned this Oct 18, 2021
@furszy furszy added this to the 6.0.0 milestone Oct 18, 2021
@furszy furszy added the Needs Release Notes Placeholder tag for anything needing mention in the "Notable Changes" section of release notes label Oct 25, 2021
@furszy
Copy link
Author

furszy commented Nov 23, 2021

rebased on master, conflicts solved.

@furszy
Copy link
Author

furszy commented Dec 10, 2021

rebased, conflicts solved.

Fuzzbawls
Fuzzbawls previously approved these changes Dec 18, 2021
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 1f21536

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.

Looking good. One minor thing: the checked state of the buttons pushNetEnable/pushNetDisable should change if the activity has been changed via RPC.

src/qt/rpcconsole.cpp Outdated Show resolved Hide resolved
src/qt/rpcconsole.cpp Outdated Show resolved Hide resolved
@furszy
Copy link
Author

furszy commented Dec 22, 2021

done, updated per feedback.

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 102dcaf

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 102dcaf

@furszy furszy merged commit f614553 into PIVX-Project:master Dec 29, 2021
@Fuzzbawls Fuzzbawls modified the milestones: 6.0.0, 5.5.0 Sep 11, 2022
@Fuzzbawls Fuzzbawls removed the Needs Release Notes Placeholder tag for anything needing mention in the "Notable Changes" section of release notes label Dec 11, 2022
@furszy furszy deleted the 2021_net_suspend branch May 27, 2023 01:55
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