Skip to content

Commit 188f89c

Browse files
committed
Disallow copy of CReserveKeys
1 parent f7ec7cf commit 188f89c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/wallet/wallet.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,6 +1009,10 @@ class CReserveKey : public CReserveScript
10091009
pwallet = pwalletIn;
10101010
}
10111011

1012+
CReserveKey() = default;
1013+
CReserveKey(const CReserveKey&) = delete;
1014+
CReserveKey& operator=(const CReserveKey&) = delete;
1015+
10121016
~CReserveKey()
10131017
{
10141018
ReturnKey();

0 commit comments

Comments
 (0)