Auto merge of #2093 - bitcartel:sent_network_alerts, r=daira
Closes #2092. Maintain record of alerts sent onto mainnet.
This commit is contained in:
@@ -71,8 +71,8 @@ void ThreadSendAlert()
|
|||||||
//
|
//
|
||||||
CAlert alert;
|
CAlert alert;
|
||||||
alert.nRelayUntil = GetTime() + 15 * 60;
|
alert.nRelayUntil = GetTime() + 15 * 60;
|
||||||
alert.nExpiration = GetTime() + 365 * 60 * 60;
|
alert.nExpiration = GetTime() + 90 * 24 * 60 * 60;
|
||||||
alert.nID = 1000; // use https://github.com/zcash/zcash/wiki/specification#assigned-numbers to keep track of alert IDs
|
alert.nID = 1001; // use https://github.com/zcash/zcash/wiki/specification#assigned-numbers to keep track of alert IDs
|
||||||
alert.nCancel = 0; // cancels previous messages up to this ID number
|
alert.nCancel = 0; // cancels previous messages up to this ID number
|
||||||
|
|
||||||
// These versions are protocol versions
|
// These versions are protocol versions
|
||||||
@@ -86,13 +86,19 @@ void ThreadSendAlert()
|
|||||||
// 2000 for longer invalid proof-of-work chain
|
// 2000 for longer invalid proof-of-work chain
|
||||||
// Higher numbers mean higher priority
|
// Higher numbers mean higher priority
|
||||||
// 4000 or higher will put the RPC into safe mode
|
// 4000 or higher will put the RPC into safe mode
|
||||||
alert.nPriority = 5000;
|
alert.nPriority = 1500;
|
||||||
alert.strComment = "";
|
alert.strComment = "";
|
||||||
alert.strStatusBar = "URGENT: Upgrade required: see https://z.cash";
|
alert.strStatusBar = "Your client is out of date and potentially vulnerable to denial of service. Please update to the most recent version of Zcash (1.0.5). More info at: https://z.cash/support/security.html";
|
||||||
alert.strRPCError = "URGENT: Upgrade required: see https://z.cash";
|
alert.strRPCError = "Your client is out of date and potentially vulnerable to denial of service. Please update to the most recent version of Zcash (1.0.5). More info at: https://z.cash/support/security.html";
|
||||||
|
|
||||||
// Set specific client version/versions here. If setSubVer is empty, no filtering on subver is done:
|
// Set specific client version/versions here. If setSubVer is empty, no filtering on subver is done:
|
||||||
// alert.setSubVer.insert(std::string("/MagicBean:0.7.2/"));
|
// alert.setSubVer.insert(std::string("/MagicBean:0.7.2/"));
|
||||||
|
alert.setSubVer.insert(std::string("/MagicBean:1.0.3/"));
|
||||||
|
|
||||||
|
// Sanity check
|
||||||
|
assert(alert.strComment.length() <= 65536); // max length in alert.h
|
||||||
|
assert(alert.strStatusBar.length() <= 256);
|
||||||
|
assert(alert.strRPCError.length() <= 256);
|
||||||
|
|
||||||
// Sign
|
// Sign
|
||||||
const CChainParams& chainparams = Params();
|
const CChainParams& chainparams = Params();
|
||||||
|
|||||||
Reference in New Issue
Block a user