aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2015-06-15 09:57:10 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2015-06-15 09:57:33 +0200
commitc1fb0e1075f626ea23d832b07b2070e0638f4215 (patch)
treed194bd3506fec0dbe08ad273252062b7cd6e3221 /src/main.cpp
parentd4565b60804c07eb6c0aabded4eddf19e27b6082 (diff)
parent02a6702a82a5b00e0e0351041dd3267308b7f319 (diff)
downloadbitcoin-c1fb0e1075f626ea23d832b07b2070e0638f4215.tar.xz
Merge pull request #6274
02a6702 Add option `-alerts` to opt out of alert system (Wladimir J. van der Laan)
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 082ef6b6b2..0be54ebd41 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -61,6 +61,7 @@ bool fCheckBlockIndex = false;
bool fCheckpointsEnabled = true;
size_t nCoinCacheUsage = 5000 * 300;
uint64_t nPruneTarget = 0;
+bool fAlerts = DEFAULT_ALERTS;
/** Fees smaller than this (in satoshi) are considered zero fee (for relaying and mining) */
CFeeRate minRelayTxFee = CFeeRate(1000);
@@ -4626,7 +4627,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
}
- else if (strCommand == "alert")
+ else if (fAlerts && strCommand == "alert")
{
CAlert alert;
vRecv >> alert;