Skip to content

Commit

Permalink
wallet: Make some arguments const that can be
Browse files Browse the repository at this point in the history
  • Loading branch information
str4d committed May 7, 2018
1 parent b87e271 commit e935beb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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

Expand Down
6 changes: 3 additions & 3 deletions src/wallet/wallet.h
Original file line number Diff line number Diff line change
Expand Up @@ -907,9 +907,9 @@ class CWallet : public CCryptoKeyStore, public CValidationInterface
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();

Expand Down

0 comments on commit e935beb

Please sign in to comment.