From e3c8d3cf1c45479944d864bd9678cf25b796563a Mon Sep 17 00:00:00 2001 From: Jianping Wu Date: Sat, 29 Dec 2018 14:12:45 -0800 Subject: [PATCH] Fixed macOS crash. --- src/chainparams.h | 3 +++ src/coins.h | 2 +- src/net_processing.h | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/chainparams.h b/src/chainparams.h index 3510ebc2e..16ca41a32 100644 --- a/src/chainparams.h +++ b/src/chainparams.h @@ -77,6 +77,9 @@ public: const CCheckpointData& Checkpoints() const { return checkpointData; } const ChainTxData& TxData() const { return chainTxData; } void UpdateVersionBitsParameters(Consensus::DeploymentPos d, int64_t nStartTime, int64_t nTimeout); + + virtual ~CChainParams() {} + protected: CChainParams() {} diff --git a/src/coins.h b/src/coins.h index 9a529c74c..2087f5607 100644 --- a/src/coins.h +++ b/src/coins.h @@ -214,7 +214,7 @@ public: bool BatchWrite(CCoinsMap &mapCoins, const uint256 &hashBlock, const CKevaCache &names) override; CCoinsViewCursor *Cursor() const override; size_t EstimateSize() const override; - bool ValidateNameDB() const; + bool ValidateNameDB() const override; }; diff --git a/src/net_processing.h b/src/net_processing.h index fc160756e..c87fbbd28 100644 --- a/src/net_processing.h +++ b/src/net_processing.h @@ -42,6 +42,8 @@ private: public: explicit PeerLogicValidation(CConnman* connman, CScheduler &scheduler); + virtual ~PeerLogicValidation() {} + void BlockConnected(const std::shared_ptr& pblock, const CBlockIndex* pindexConnected, const std::vector& vtxConflicted) override; void UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload) override; void BlockChecked(const CBlock& block, const CValidationState& state) override;