From 08b9908f6e9a86162061293e1dad9caf6b14e3e0 Mon Sep 17 00:00:00 2001 From: Johann Bauer Date: Wed, 14 Feb 2018 21:48:28 +0100 Subject: [PATCH] Make it harder for altcoins to accidentally use our crashhub --- gui/qt/exception_window.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gui/qt/exception_window.py b/gui/qt/exception_window.py index a603af5ef..a15bbe25a 100644 --- a/gui/qt/exception_window.py +++ b/gui/qt/exception_window.py @@ -34,7 +34,7 @@ from PyQt5.QtWidgets import * from electrum.i18n import _ import sys -from electrum import ELECTRUM_VERSION +from electrum import ELECTRUM_VERSION, bitcoin issue_template = """

Traceback

@@ -105,6 +105,10 @@ class Exception_Window(QWidget):
         self.show()
 
     def send_report(self):
+        if bitcoin.NetworkConstants.GENESIS[-4:] not in ["4943", "e26f"] and ".electrum.org" in report_server:
+            # Gah! Some kind of altcoin wants to send us crash reports.
+            self.main_window.show_critical("Please report this issue manually.")
+            return
         report = self.get_traceback_info()
         report.update(self.get_additional_info())
         report = json.dumps(report)