Remove redundant curly braces

This commit is contained in:
Eirik Ogilvie-Wigley 2018-07-12 15:33:17 -06:00 committed by Simon
parent 005f3ad1dd
commit 49695a97b5
1 changed files with 149 additions and 153 deletions

View File

@ -756,7 +756,6 @@ void CWallet::IncrementNoteWitnesses(const CBlockIndex* pindex,
const CBlock* pblockIn,
ZCIncrementalMerkleTree& tree)
{
{
LOCK(cs_wallet);
for (std::pair<const uint256, CWalletTx>& wtxItem : mapWallet) {
for (mapSproutNoteData_t::value_type& item : wtxItem.second.mapSproutNoteData) {
@ -867,12 +866,10 @@ void CWallet::IncrementNoteWitnesses(const CBlockIndex* pindex,
// For performance reasons, we write out the witness cache in
// CWallet::SetBestChain() (which also ensures that overall consistency
// of the wallet.dat is maintained).
}
}
void CWallet::DecrementNoteWitnesses(const CBlockIndex* pindex)
{
{
LOCK(cs_wallet);
for (std::pair<const uint256, CWalletTx>& wtxItem : mapWallet) {
for (mapSproutNoteData_t::value_type& item : wtxItem.second.mapSproutNoteData) {
@ -921,7 +918,6 @@ void CWallet::DecrementNoteWitnesses(const CBlockIndex* pindex)
// For performance reasons, we write out the witness cache in
// CWallet::SetBestChain() (which also ensures that overall consistency
// of the wallet.dat is maintained).
}
}
bool CWallet::EncryptWallet(const SecureString& strWalletPassphrase)