Fixed macOS crash.

This commit is contained in:
Jianping Wu 2018-12-29 14:12:45 -08:00
parent 21d1e1782f
commit e3c8d3cf1c
3 changed files with 6 additions and 1 deletions

View File

@ -77,6 +77,9 @@ public:
const CCheckpointData& Checkpoints() const { return checkpointData; } const CCheckpointData& Checkpoints() const { return checkpointData; }
const ChainTxData& TxData() const { return chainTxData; } const ChainTxData& TxData() const { return chainTxData; }
void UpdateVersionBitsParameters(Consensus::DeploymentPos d, int64_t nStartTime, int64_t nTimeout); void UpdateVersionBitsParameters(Consensus::DeploymentPos d, int64_t nStartTime, int64_t nTimeout);
virtual ~CChainParams() {}
protected: protected:
CChainParams() {} CChainParams() {}

View File

@ -214,7 +214,7 @@ public:
bool BatchWrite(CCoinsMap &mapCoins, const uint256 &hashBlock, const CKevaCache &names) override; bool BatchWrite(CCoinsMap &mapCoins, const uint256 &hashBlock, const CKevaCache &names) override;
CCoinsViewCursor *Cursor() const override; CCoinsViewCursor *Cursor() const override;
size_t EstimateSize() const override; size_t EstimateSize() const override;
bool ValidateNameDB() const; bool ValidateNameDB() const override;
}; };

View File

@ -42,6 +42,8 @@ private:
public: public:
explicit PeerLogicValidation(CConnman* connman, CScheduler &scheduler); explicit PeerLogicValidation(CConnman* connman, CScheduler &scheduler);
virtual ~PeerLogicValidation() {}
void BlockConnected(const std::shared_ptr<const CBlock>& pblock, const CBlockIndex* pindexConnected, const std::vector<CTransactionRef>& vtxConflicted) override; void BlockConnected(const std::shared_ptr<const CBlock>& pblock, const CBlockIndex* pindexConnected, const std::vector<CTransactionRef>& vtxConflicted) override;
void UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload) override; void UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload) override;
void BlockChecked(const CBlock& block, const CValidationState& state) override; void BlockChecked(const CBlock& block, const CValidationState& state) override;