Skip to content

[P2P] Remove p2p alert system#1372

Merged
random-zebra merged 7 commits into
PIVX-Project:masterfrom
random-zebra:2020_alert-system
Mar 13, 2020
Merged

[P2P] Remove p2p alert system#1372
random-zebra merged 7 commits into
PIVX-Project:masterfrom
random-zebra:2020_alert-system

Conversation

@random-zebra

Copy link
Copy Markdown

This completely removes the p2p network alert messaging system.
Based on upstream bitcoin#7692

Patches CVE-2016-10724 / CVE-2016-10725

@random-zebra random-zebra added this to the 4.1.0 milestone Mar 3, 2020
@random-zebra random-zebra self-assigned this Mar 3, 2020
@random-zebra random-zebra added the Needs Release Notes Placeholder tag for anything needing mention in the "Notable Changes" section of release notes label Mar 3, 2020
@random-zebra random-zebra removed the Needs Release Notes Placeholder tag for anything needing mention in the "Notable Changes" section of release notes label Mar 3, 2020
@random-zebra

Copy link
Copy Markdown
Author

Rebased.

@Fuzzbawls Fuzzbawls left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

utACK ce8ff4b

Comment thread src/qt/clientmodel.cpp

void ClientModel::updateAlert()
{
Q_EMIT alertsChanged(getStatusBarWarnings());

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

alertChanged signal is not connected to the GUI at all, can remove it entirely from clientModel. Including the NotifyAlertChanged boost event binding.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Wouldn't it be better to actually connect the alertsChanged signal and show the messages somewhere in the GUI (e.g. "Large-work fork detected")?
In case, we can do it in a successive PR.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

yes this is something we've discussed before. alert type messages need to be presented in the GUI in a future PR.

@furszy furszy left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

utACK ce8ff4b

@random-zebra random-zebra merged commit 59fdfee into PIVX-Project:master Mar 13, 2020
akshaynexus added a commit to ZENZO-Ecosystem/ZENZO-Core that referenced this pull request Mar 15, 2020
ce8ff4b [Doc] Document removal of p2p alert system (random-zebra)
a296c6f [Trivial] Fix NotifyAlertChanged comment (cs_mapAlerts not required) (random-zebra)
06fdc6a [Build] CMake: remove alert.cpp (random-zebra)
39c412a Remove alert keys (random-zebra)
936ca82 Remove p2p alert handling (random-zebra)
d06eceb Remove `-alerts` option (random-zebra)
2ebd863 Update alert notification and GUI (random-zebra)

Pull request description:

  This completely removes the p2p network alert messaging system.
  Based on upstream bitcoin#7692

  Patches CVE-2016-10724 / CVE-2016-10725

ACKs for top commit:
  Fuzzbawls:
    utACK ce8ff4b
  furszy:
    utACK ce8ff4b

Tree-SHA512: 40b2a023a53af880388337d52680fa100265ff704da8d51e889ca12cf97293cc0914ef3c4a57052ed342682fda08457f8f0fd8c0184d2aa408647ea6a0e5078d
@random-zebra random-zebra deleted the 2020_alert-system branch September 24, 2020 00:27
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.

3 participants