Refactor: rename UnlockAllNotes -> UnlockAllSproutNotes
This commit is contained in:
parent
d358d145ca
commit
9ae73247e2
|
@ -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));
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue