diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-12-14 12:39:29 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-12-14 12:42:33 +0100 |
commit | fada66fc2c716fc148104b6180da12efc5d05e41 (patch) | |
tree | 5da0a48e1cd5ad09622d0136c87f2c4d96540af9 /src/chain.h | |
parent | aaaceb7fb14fa69d34194e805bc384088f55d25c (diff) |
Disallow copies of CChain
Diffstat (limited to 'src/chain.h')
-rw-r--r-- | src/chain.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/chain.h b/src/chain.h index 15ca8f8750..2b05bf66ed 100644 --- a/src/chain.h +++ b/src/chain.h @@ -412,6 +412,10 @@ private: std::vector<CBlockIndex*> 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; |