Skip to content

Commit

Permalink
Disallow copy of CReserveKeys
Browse files Browse the repository at this point in the history
  • Loading branch information
instagibbs authored and xanimo committed Apr 1, 2024
1 parent 448525e commit f7d4a14
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/wallet/wallet.h
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,10 @@ class CReserveKey : public CReserveScript
pwallet = pwalletIn;
}

CReserveKey() = default;
CReserveKey(const CReserveKey&) = delete;
CReserveKey& operator=(const CReserveKey&) = delete;

~CReserveKey()
{
ReturnKey();
Expand Down

0 comments on commit f7d4a14

Please sign in to comment.