wallet: Make some arguments const that can be
This commit is contained in:
@@ -3446,13 +3446,13 @@ void CWallet::ListLockedCoins(std::vector<COutPoint>& vOutpts)
|
|||||||
|
|
||||||
// Note Locking Operations
|
// Note Locking Operations
|
||||||
|
|
||||||
void CWallet::LockNote(JSOutPoint& output)
|
void CWallet::LockNote(const JSOutPoint& output)
|
||||||
{
|
{
|
||||||
AssertLockHeld(cs_wallet); // setLockedNotes
|
AssertLockHeld(cs_wallet); // setLockedNotes
|
||||||
setLockedNotes.insert(output);
|
setLockedNotes.insert(output);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CWallet::UnlockNote(JSOutPoint& output)
|
void CWallet::UnlockNote(const JSOutPoint& output)
|
||||||
{
|
{
|
||||||
AssertLockHeld(cs_wallet); // setLockedNotes
|
AssertLockHeld(cs_wallet); // setLockedNotes
|
||||||
setLockedNotes.erase(output);
|
setLockedNotes.erase(output);
|
||||||
@@ -3464,7 +3464,7 @@ void CWallet::UnlockAllNotes()
|
|||||||
setLockedNotes.clear();
|
setLockedNotes.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CWallet::IsLockedNote(JSOutPoint& outpt) const
|
bool CWallet::IsLockedNote(const JSOutPoint& outpt) const
|
||||||
{
|
{
|
||||||
AssertLockHeld(cs_wallet); // setLockedNotes
|
AssertLockHeld(cs_wallet); // setLockedNotes
|
||||||
|
|
||||||
|
|||||||
@@ -907,9 +907,9 @@ public:
|
|||||||
void ListLockedCoins(std::vector<COutPoint>& vOutpts);
|
void ListLockedCoins(std::vector<COutPoint>& vOutpts);
|
||||||
|
|
||||||
|
|
||||||
bool IsLockedNote(JSOutPoint& outpt) const;
|
bool IsLockedNote(const JSOutPoint& outpt) const;
|
||||||
void LockNote(JSOutPoint& output);
|
void LockNote(const JSOutPoint& output);
|
||||||
void UnlockNote(JSOutPoint& output);
|
void UnlockNote(const JSOutPoint& output);
|
||||||
void UnlockAllNotes();
|
void UnlockAllNotes();
|
||||||
std::vector<JSOutPoint> ListLockedNotes();
|
std::vector<JSOutPoint> ListLockedNotes();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user