wallet: Make some arguments const that can be

This commit is contained in:
Jack Grigg
2018-05-07 22:13:26 +01:00
parent b87e271a9a
commit e935beb810
2 changed files with 6 additions and 6 deletions

View File

@@ -3446,13 +3446,13 @@ void CWallet::ListLockedCoins(std::vector<COutPoint>& 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

View File

@@ -907,9 +907,9 @@ public:
void ListLockedCoins(std::vector<COutPoint>& 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<JSOutPoint> ListLockedNotes();