Refactor: rename UnlockAllNotes -> UnlockAllSproutNotes

This commit is contained in:
Simon 2018-08-29 11:25:32 -07:00
parent d358d145ca
commit 9ae73247e2
3 changed files with 3 additions and 3 deletions

View File

@ -1995,7 +1995,7 @@ TEST(WalletTests, SproutNoteLocking) {
EXPECT_TRUE(wallet.IsLockedNote(jsoutpt2));
// Test unlock all
wallet.UnlockAllNotes();
wallet.UnlockAllSproutNotes();
EXPECT_FALSE(wallet.IsLockedNote(jsoutpt));
EXPECT_FALSE(wallet.IsLockedNote(jsoutpt2));
}

View File

@ -3838,7 +3838,7 @@ void CWallet::UnlockNote(const JSOutPoint& output)
setLockedSproutNotes.erase(output);
}
void CWallet::UnlockAllNotes()
void CWallet::UnlockAllSproutNotes()
{
AssertLockHeld(cs_wallet); // setLockedSproutNotes
setLockedSproutNotes.clear();

View File

@ -967,7 +967,7 @@ public:
bool IsLockedNote(const JSOutPoint& outpt) const;
void LockNote(const JSOutPoint& output);
void UnlockNote(const JSOutPoint& output);
void UnlockAllNotes();
void UnlockAllSproutNotes();
std::vector<JSOutPoint> ListLockedNotes();