1
0

crash_reporter: flag reports where console was used in app_version

so we don't waste time on weird reports where the user modified
internals at runtime

ref
https://github.com/spesmilo/electrum/issues/10217
https://github.com/spesmilo/electrum/issues/10218
This commit is contained in:
SomberNight
2025-09-11 15:33:53 +00:00
parent 47f1a2d7a2
commit e10cf30627
2 changed files with 15 additions and 4 deletions

View File

@@ -39,6 +39,12 @@ if TYPE_CHECKING:
from .network import ProxySettings
_tainted_by_console = False
def taint_reports_by_console_usage():
global _tainted_by_console
_tainted_by_console = True
class CrashReportResponse(NamedTuple):
status: Optional[str]
text: str
@@ -153,8 +159,11 @@ class BaseCrashReporter(Logger):
return sha256(str(_id))
def get_additional_info(self):
app_version = (get_git_version() or ELECTRUM_VERSION)
if _tainted_by_console:
app_version += "-consoletaint"
args = {
"app_version": get_git_version() or ELECTRUM_VERSION,
"app_version": app_version,
"python_version": sys.version,
"os": describe_os_version(),
"wallet_type": "unknown",