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

Closes #3329. Send alert to put non-Sapling nodes into safe mode. #3628

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 7 additions & 5 deletions src/sendalert.cpp
@@ -1,4 +1,4 @@
// Copyright (c) 2016 The Zcash developers
// Copyright (c) 2016-2018 The Zcash developers
// Original code from: https://gist.github.com/laanwj/0e689cfa37b52bcbbb44

/*
Expand Down Expand Up @@ -72,13 +72,15 @@ void ThreadSendAlert()
CAlert alert;
alert.nRelayUntil = GetTime() + 15 * 60;
alert.nExpiration = GetTime() + 10 * 365 * 24 * 60 * 60;
alert.nID = 1005; // use https://github.com/zcash/zcash/wiki/specification#assigned-numbers to keep track of alert IDs
alert.nCancel = 1004; // cancels previous messages up to this ID number
alert.nID = 1006; // use https://github.com/zcash/zcash/wiki/specification#assigned-numbers to keep track of alert IDs
alert.nCancel = 1005; // cancels previous messages up to this ID number

// These versions are protocol versions
// 170002 : 1.0.0
// 170006 : 1.1.2
// 170007 : 2.0.0
alert.nMinVer = 170002;
alert.nMaxVer = 170004;
alert.nMaxVer = 170006;

//
// main.cpp:
Expand All @@ -88,7 +90,7 @@ void ThreadSendAlert()
// 4000 or higher will put the RPC into safe mode
alert.nPriority = 4000;
alert.strComment = "";
alert.strStatusBar = "Your client is out of date and incompatible with the Overwinter network upgrade. Please update to a recent version of Zcash (1.1.0 or later).";
alert.strStatusBar = "Your client is out of date and incompatible with the Sapling network upgrade. Please update to a recent version of Zcash (2.0.1 or later).";
alert.strRPCError = alert.strStatusBar;

// Set specific client version/versions here. If setSubVer is empty, no filtering on subver is done:
Expand Down