Skip to content

Commit fada66f

Browse files
author
MarcoFalke
committed
Disallow copies of CChain
1 parent aaaceb7 commit fada66f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/chain.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,10 @@ class CChain {
412412
std::vector<CBlockIndex*> vChain;
413413

414414
public:
415+
CChain() = default;
416+
CChain(const CChain&) = delete;
417+
CChain& operator=(const CChain&) = delete;
418+
415419
/** Returns the index entry for the genesis block of this chain, or nullptr if none. */
416420
CBlockIndex *Genesis() const {
417421
return vChain.size() > 0 ? vChain[0] : nullptr;

0 commit comments

Comments
 (0)