File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -962,6 +962,13 @@ class NetEventsInterface
962962 virtual bool SendMessages (CNode* pnode, std::atomic<bool >& interrupt) EXCLUSIVE_LOCKS_REQUIRED(pnode->cs_sendProcessing) = 0;
963963 virtual void InitializeNode (CNode* pnode) = 0;
964964 virtual void FinalizeNode (NodeId id, bool & update_connection_time) = 0;
965+
966+ protected:
967+ /* *
968+ * Protected destructor so that instances can only be deleted by derived classes.
969+ * If that restriction is no longer desired, this should be made public and virtual.
970+ */
971+ ~NetEventsInterface () = default ;
965972};
966973
967974/* * Return a timestamp in the future (in microseconds) for exponentially distributed events. */
Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ static const unsigned int INVENTORY_BROADCAST_INTERVAL = 5;
3232 * Limits the impact of low-fee transaction floods. */
3333static const unsigned int INVENTORY_BROADCAST_MAX = 7 * INVENTORY_BROADCAST_INTERVAL;
3434
35- class PeerLogicValidation : public CValidationInterface , public NetEventsInterface {
35+ class PeerLogicValidation final : public CValidationInterface, public NetEventsInterface
36+ {
3637private:
3738 CConnman* connman;
3839
You can’t perform that action at this time.
0 commit comments