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
962
962
virtual bool SendMessages (CNode* pnode, std::atomic<bool >& interrupt) EXCLUSIVE_LOCKS_REQUIRED(pnode->cs_sendProcessing) = 0;
963
963
virtual void InitializeNode (CNode* pnode) = 0;
964
964
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 ;
965
972
};
966
973
967
974
/* * 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;
32
32
* Limits the impact of low-fee transaction floods. */
33
33
static const unsigned int INVENTORY_BROADCAST_MAX = 7 * INVENTORY_BROADCAST_INTERVAL;
34
34
35
- class PeerLogicValidation : public CValidationInterface , public NetEventsInterface {
35
+ class PeerLogicValidation final : public CValidationInterface, public NetEventsInterface
36
+ {
36
37
private:
37
38
CConnman* connman;
38
39
You can’t perform that action at this time.
0 commit comments