alert system updates
This commit is contained in:
@@ -462,7 +462,7 @@ libbitcoin_server_a_SOURCES += rpc/testtransactions.cpp
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
# cli: zcash-cli
|
# cli
|
||||||
libbitcoin_cli_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES)
|
libbitcoin_cli_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES)
|
||||||
libbitcoin_cli_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
|
libbitcoin_cli_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
|
||||||
libbitcoin_cli_a_SOURCES = \
|
libbitcoin_cli_a_SOURCES = \
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Copyright (c) 2019-2020 The Hush developers
|
||||||
// Copyright (c) 2016 The Zcash developers
|
// Copyright (c) 2016 The Zcash developers
|
||||||
// Original code from: https://gist.github.com/laanwj/0e689cfa37b52bcbbb44
|
// Original code from: https://gist.github.com/laanwj/0e689cfa37b52bcbbb44
|
||||||
|
|
||||||
@@ -74,9 +75,9 @@ void ThreadSendAlert()
|
|||||||
if (!mapArgs.count("-sendalert") && !mapArgs.count("-printalert"))
|
if (!mapArgs.count("-sendalert") && !mapArgs.count("-printalert"))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
//TODO: wait until KOMODO_IN_SYNC
|
||||||
MilliSleep(60*1000); // Wait a minute so we get connected
|
MilliSleep(60*1000); // Wait a minute so we get connected
|
||||||
|
|
||||||
//
|
|
||||||
// Alerts are relayed around the network until nRelayUntil, flood
|
// Alerts are relayed around the network until nRelayUntil, flood
|
||||||
// filling to every node.
|
// filling to every node.
|
||||||
// After the relay time is past, new nodes are told about alerts
|
// After the relay time is past, new nodes are told about alerts
|
||||||
@@ -87,7 +88,7 @@ void ThreadSendAlert()
|
|||||||
CAlert alert;
|
CAlert alert;
|
||||||
alert.nRelayUntil = GetTime() + 15 * 60;
|
alert.nRelayUntil = GetTime() + 15 * 60;
|
||||||
alert.nExpiration = GetTime() + 10 * 365 * 24 * 60 * 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.nID = 1005; // HUSH3 has never had any alert id's
|
||||||
alert.nCancel = 1004; // cancels previous messages up to this ID number
|
alert.nCancel = 1004; // cancels previous messages up to this ID number
|
||||||
|
|
||||||
// These versions are protocol versions
|
// These versions are protocol versions
|
||||||
@@ -103,12 +104,12 @@ void ThreadSendAlert()
|
|||||||
// 4000 or higher will put the RPC into safe mode
|
// 4000 or higher will put the RPC into safe mode
|
||||||
alert.nPriority = 4000;
|
alert.nPriority = 4000;
|
||||||
alert.strComment = "";
|
alert.strComment = "";
|
||||||
alert.strStatusBar = "Your client version has degraded networking behavior. Please update to the most recent version of Hush (3.2.0 or later).";
|
alert.strStatusBar = "Your client version has degraded networking behavior. Please update to the most recent version of Hush (3.5.0 or later).";
|
||||||
alert.strRPCError = alert.strStatusBar;
|
alert.strRPCError = alert.strStatusBar;
|
||||||
|
|
||||||
// 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/"));
|
||||||
const std::vector<std::string> useragents = {}; //{"MagicBean", "BeanStalk", "AppleSeed", "EleosZcash"};
|
const std::vector<std::string> useragents = {}; //{"MagicBean", "BeanStalk", "AppleSeed" };
|
||||||
|
|
||||||
BOOST_FOREACH(const std::string& useragent, useragents) {
|
BOOST_FOREACH(const std::string& useragent, useragents) {
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user