|
109 | 109 |
|
110 | 110 | #include <boost/signals2/signal.hpp>
|
111 | 111 |
|
112 |
| -#if ENABLE_ZMQ |
| 112 | +#ifdef ENABLE_ZMQ |
113 | 113 | #include <zmq/zmqabstractnotifier.h>
|
114 | 114 | #include <zmq/zmqnotificationinterface.h>
|
115 | 115 | #include <zmq/zmqrpc.h>
|
@@ -364,7 +364,7 @@ void Shutdown(NodeContext& node)
|
364 | 364 | client->stop();
|
365 | 365 | }
|
366 | 366 |
|
367 |
| -#if ENABLE_ZMQ |
| 367 | +#ifdef ENABLE_ZMQ |
368 | 368 | if (g_zmq_notification_interface) {
|
369 | 369 | if (node.validation_signals) node.validation_signals->UnregisterValidationInterface(g_zmq_notification_interface.get());
|
370 | 370 | g_zmq_notification_interface.reset();
|
@@ -578,7 +578,7 @@ void SetupServerArgs(ArgsManager& argsman)
|
578 | 578 |
|
579 | 579 | g_wallet_init_interface.AddWalletOptions(argsman);
|
580 | 580 |
|
581 |
| -#if ENABLE_ZMQ |
| 581 | +#ifdef ENABLE_ZMQ |
582 | 582 | argsman.AddArg("-zmqpubhashblock=<address>", "Enable publish hash block in <address>", ArgsManager::ALLOW_ANY, OptionsCategory::ZMQ);
|
583 | 583 | argsman.AddArg("-zmqpubhashtx=<address>", "Enable publish hash transaction in <address>", ArgsManager::ALLOW_ANY, OptionsCategory::ZMQ);
|
584 | 584 | argsman.AddArg("-zmqpubrawblock=<address>", "Enable publish raw block in <address>", ArgsManager::ALLOW_ANY, OptionsCategory::ZMQ);
|
@@ -1200,7 +1200,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
|
1200 | 1200 | for (const auto& client : node.chain_clients) {
|
1201 | 1201 | client->registerRpcs();
|
1202 | 1202 | }
|
1203 |
| -#if ENABLE_ZMQ |
| 1203 | +#ifdef ENABLE_ZMQ |
1204 | 1204 | RegisterZMQRPCCommands(tableRPC);
|
1205 | 1205 | #endif
|
1206 | 1206 |
|
@@ -1472,7 +1472,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
|
1472 | 1472 | return InitError(ResolveErrMsg("externalip", strAddr));
|
1473 | 1473 | }
|
1474 | 1474 |
|
1475 |
| -#if ENABLE_ZMQ |
| 1475 | +#ifdef ENABLE_ZMQ |
1476 | 1476 | g_zmq_notification_interface = CZMQNotificationInterface::Create(
|
1477 | 1477 | [&chainman = node.chainman](std::vector<uint8_t>& block, const CBlockIndex& index) {
|
1478 | 1478 | assert(chainman);
|
|
0 commit comments