mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-18 15:33:59 +02:00
Merge #9906: Disallow copy constructor CReserveKeys
188f89c
Disallow copy of CReserveKeys (Gregory Sanders)
Tree-SHA512: e55ce10bf7f2dc91de9797e60ab7767fb51f25255995d62ddf358c52b7aaa23c26fbfb522e1610ff950b86804ddbc38dc0d7708bfab2c4d33ad99a275d8c77db
This commit is contained in:
@ -1036,6 +1036,10 @@ public:
|
|||||||
pwallet = pwalletIn;
|
pwallet = pwalletIn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CReserveKey() = default;
|
||||||
|
CReserveKey(const CReserveKey&) = delete;
|
||||||
|
CReserveKey& operator=(const CReserveKey&) = delete;
|
||||||
|
|
||||||
~CReserveKey()
|
~CReserveKey()
|
||||||
{
|
{
|
||||||
ReturnKey();
|
ReturnKey();
|
||||||
|
Reference in New Issue
Block a user