mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Disallow copies of CChain
This commit is contained in:
parent
aaaceb7fb1
commit
fada66fc2c
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue