diff --git a/src/chain.h b/src/chain.h index 15ca8f8750c..2b05bf66ed4 100644 --- a/src/chain.h +++ b/src/chain.h @@ -412,6 +412,10 @@ private: std::vector vChain; public: + CChain() = default; + CChain(const CChain&) = delete; + CChain& operator=(const CChain&) = delete; + /** Returns the index entry for the genesis block of this chain, or nullptr if none. */ CBlockIndex *Genesis() const { return vChain.size() > 0 ? vChain[0] : nullptr;