From 929c892c054f4aff3e9c84570109c9014ffcb996 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Fri, 16 Aug 2019 14:49:15 +0300 Subject: [PATCH] Remove p2p alert leftovers (#3050) * Drop ALERT debug category Was used for p2p alerts only * Drop `alert` p2p message handling in tests --- src/rpc/misc.cpp | 2 +- src/util.cpp | 1 - src/util.h | 1 - test/functional/test_framework/mininode.py | 97 ---------------------- 4 files changed, 1 insertion(+), 100 deletions(-) diff --git a/src/rpc/misc.cpp b/src/rpc/misc.cpp index b65867a40..7e03c80b5 100644 --- a/src/rpc/misc.cpp +++ b/src/rpc/misc.cpp @@ -136,7 +136,7 @@ UniValue debug(const JSONRPCRequest& request) "Change debug category on the fly. Specify single category or use '+' to specify many.\n" "\nArguments:\n" "1. \"category\" (string, required) The name of the debug category to turn on. Can be one of the following:\n" - " addrman, alert, bench, cmpctblock, coindb, db, http, leveldb, libevent, lock, mempool,\n" + " addrman, bench, cmpctblock, coindb, db, http, leveldb, libevent, lock, mempool,\n" " mempoolrej, net, proxy, prune, qt, rand, reindex, rpc, selectcoins, tor, zmq, dash\n" " (or specifically: chainlocks, gobject, instantsend, keepass, llmq, llmq-dkg, llmq-sigs,\n" " mnpayments, mnsync, privatesend, spork).\n" diff --git a/src/util.cpp b/src/util.cpp index 9ad4265ea..3677a472d 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -277,7 +277,6 @@ const CLogCategoryDesc LogCategories[] = {BCLog::MNSYNC, "mnsync"}, {BCLog::PRIVATESEND, "privatesend"}, {BCLog::SPORK, "spork"}, - {BCLog::ALERT, "alert"}, //End Dash }; diff --git a/src/util.h b/src/util.h index 6639300b4..4de8b0208 100644 --- a/src/util.h +++ b/src/util.h @@ -136,7 +136,6 @@ namespace BCLog { MNSYNC = ((uint64_t)1 << 40), PRIVATESEND = ((uint64_t)1 << 41), SPORK = ((uint64_t)1 << 42), - ALERT = ((uint64_t)1 << 43), //End Dash ALL = ~(uint64_t)0, diff --git a/test/functional/test_framework/mininode.py b/test/functional/test_framework/mininode.py index aab5759c9..c3c3ffb99 100755 --- a/test/functional/test_framework/mininode.py +++ b/test/functional/test_framework/mininode.py @@ -593,82 +593,6 @@ class CBlock(CBlockHeader): % (self.nVersion, self.hashPrevBlock, self.hashMerkleRoot, time.ctime(self.nTime), self.nBits, self.nNonce, repr(self.vtx)) - -class CUnsignedAlert(object): - def __init__(self): - self.nVersion = 1 - self.nRelayUntil = 0 - self.nExpiration = 0 - self.nID = 0 - self.nCancel = 0 - self.setCancel = [] - self.nMinVer = 0 - self.nMaxVer = 0 - self.setSubVer = [] - self.nPriority = 0 - self.strComment = b"" - self.strStatusBar = b"" - self.strReserved = b"" - - def deserialize(self, f): - self.nVersion = struct.unpack("