diff options
author | João Barbosa <joao@bitreserve.org> | 2015-11-01 18:09:17 +0000 |
---|---|---|
committer | João Barbosa <joao@bitreserve.org> | 2015-11-04 10:36:00 +0000 |
commit | de0499d3b8352334357c8d60931cd5d2be5ab61d (patch) | |
tree | debaa2e8f9671650860d827cedbdac27ca79b243 /src/zmq/zmqnotificationinterface.h | |
parent | 02a95be97759e70d9e7537775c95eec219c8333e (diff) |
Fix ZMQ Notification initialization and shutdown
Moves the call Initialize() from init.cpp to CreateWithArguments() and handles the
return value. Moves the call Shutdown() from init.cpp to destructor.
Changes Initialize() and Shutdown() to protected members.
Diffstat (limited to 'src/zmq/zmqnotificationinterface.h')
-rw-r--r-- | src/zmq/zmqnotificationinterface.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/zmq/zmqnotificationinterface.h b/src/zmq/zmqnotificationinterface.h index 8eea15c068..3ccfaf341d 100644 --- a/src/zmq/zmqnotificationinterface.h +++ b/src/zmq/zmqnotificationinterface.h @@ -19,10 +19,11 @@ public: static CZMQNotificationInterface* CreateWithArguments(const std::map<std::string, std::string> &args); +protected: bool Initialize(); void Shutdown(); -protected: // CValidationInterface + // CValidationInterface void SyncTransaction(const CTransaction &tx, const CBlock *pblock); void UpdatedBlockTip(const CBlockIndex *pindex); |