diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 2a04ff5c9..126ed98f7 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -3446,13 +3446,13 @@ void CWallet::ListLockedCoins(std::vector& vOutpts) // Note Locking Operations -void CWallet::LockNote(JSOutPoint& output) +void CWallet::LockNote(const JSOutPoint& output) { AssertLockHeld(cs_wallet); // setLockedNotes setLockedNotes.insert(output); } -void CWallet::UnlockNote(JSOutPoint& output) +void CWallet::UnlockNote(const JSOutPoint& output) { AssertLockHeld(cs_wallet); // setLockedNotes setLockedNotes.erase(output); @@ -3464,7 +3464,7 @@ void CWallet::UnlockAllNotes() setLockedNotes.clear(); } -bool CWallet::IsLockedNote(JSOutPoint& outpt) const +bool CWallet::IsLockedNote(const JSOutPoint& outpt) const { AssertLockHeld(cs_wallet); // setLockedNotes diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index 8dc2acbbf..08f22f97e 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -907,9 +907,9 @@ public: void ListLockedCoins(std::vector& vOutpts); - bool IsLockedNote(JSOutPoint& outpt) const; - void LockNote(JSOutPoint& output); - void UnlockNote(JSOutPoint& output); + bool IsLockedNote(const JSOutPoint& outpt) const; + void LockNote(const JSOutPoint& output); + void UnlockNote(const JSOutPoint& output); void UnlockAllNotes(); std::vector ListLockedNotes();