zmqabstractnotifier.cpp
1 // Copyright (c) 2015-2020 The Bitcoin Core developers 2 // Distributed under the MIT software license, see the accompanying 3 // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 5 #include <zmq/zmqabstractnotifier.h> 6 7 #include <cassert> 8 9 const int CZMQAbstractNotifier::DEFAULT_ZMQ_SNDHWM; 10 11 CZMQAbstractNotifier::~CZMQAbstractNotifier() 12 { 13 assert(!psocket); 14 } 15 16 bool CZMQAbstractNotifier::NotifyBlock(const CBlockIndex * /*CBlockIndex*/) 17 { 18 return true; 19 } 20 21 bool CZMQAbstractNotifier::NotifyTransaction(const CTransaction &/*transaction*/) 22 { 23 return true; 24 } 25 26 bool CZMQAbstractNotifier::NotifyBlockConnect(const CBlockIndex * /*CBlockIndex*/) 27 { 28 return true; 29 } 30 31 bool CZMQAbstractNotifier::NotifyBlockDisconnect(const CBlockIndex * /*CBlockIndex*/) 32 { 33 return true; 34 } 35 36 bool CZMQAbstractNotifier::NotifyTransactionAcceptance(const CTransaction &/*transaction*/, uint64_t mempool_sequence) 37 { 38 return true; 39 } 40 41 bool CZMQAbstractNotifier::NotifyTransactionRemoval(const CTransaction &/*transaction*/, uint64_t mempool_sequence) 42 { 43 return true; 44 }