Bitcoin Core  22.99.0
P2P Digital Currency
zmqabstractnotifier.cpp
Go to the documentation of this file.
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 
6 
7 #include <cassert>
8 
10 
12 {
13  assert(!psocket);
14 }
15 
16 bool CZMQAbstractNotifier::NotifyBlock(const CBlockIndex * /*CBlockIndex*/)
17 {
18  return true;
19 }
20 
22 {
23  return true;
24 }
25 
27 {
28  return true;
29 }
30 
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 }
zmqabstractnotifier.h
assert
assert(!tx.IsCoinBase())
CZMQAbstractNotifier::NotifyBlockDisconnect
virtual bool NotifyBlockDisconnect(const CBlockIndex *pindex)
Definition: zmqabstractnotifier.cpp:31
CZMQAbstractNotifier::DEFAULT_ZMQ_SNDHWM
static const int DEFAULT_ZMQ_SNDHWM
Definition: zmqabstractnotifier.h:21
CZMQAbstractNotifier::NotifyTransactionAcceptance
virtual bool NotifyTransactionAcceptance(const CTransaction &transaction, uint64_t mempool_sequence)
Definition: zmqabstractnotifier.cpp:36
CTransaction
The basic transaction that is broadcasted on the network and contained in blocks.
Definition: transaction.h:259
CZMQAbstractNotifier::psocket
void * psocket
Definition: zmqabstractnotifier.h:60
CZMQAbstractNotifier::~CZMQAbstractNotifier
virtual ~CZMQAbstractNotifier()
Definition: zmqabstractnotifier.cpp:11
CZMQAbstractNotifier::NotifyTransactionRemoval
virtual bool NotifyTransactionRemoval(const CTransaction &transaction, uint64_t mempool_sequence)
Definition: zmqabstractnotifier.cpp:41
CZMQAbstractNotifier::NotifyTransaction
virtual bool NotifyTransaction(const CTransaction &transaction)
Definition: zmqabstractnotifier.cpp:21
CZMQAbstractNotifier::NotifyBlockConnect
virtual bool NotifyBlockConnect(const CBlockIndex *pindex)
Definition: zmqabstractnotifier.cpp:26
CZMQAbstractNotifier::NotifyBlock
virtual bool NotifyBlock(const CBlockIndex *pindex)
Definition: zmqabstractnotifier.cpp:16
CBlockIndex
The block chain is a tree shaped structure starting with the genesis block at the root,...
Definition: chain.h:137