From 29523dc778c15c9a3257197deba9a2bc5b7dd15d Mon Sep 17 00:00:00 2001 From: Eirik Ogilvie-Wigley Date: Tue, 17 Jul 2018 12:07:42 -0600 Subject: [PATCH] Remove extra indentation --- src/wallet/wallet.cpp | 38 ++++++++++++++++++-------------------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index be2110e65..761cf6a8b 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -1473,28 +1473,26 @@ void CWallet::GetSproutNoteWitnesses(std::vector notes, std::vector>& witnesses, uint256 &final_anchor) { - { - LOCK(cs_wallet); - witnesses.resize(notes.size()); - boost::optional rt; - int i = 0; - for (JSOutPoint note : notes) { - if (mapWallet.count(note.hash) && - mapWallet[note.hash].mapSproutNoteData.count(note) && - mapWallet[note.hash].mapSproutNoteData[note].witnesses.size() > 0) { - witnesses[i] = mapWallet[note.hash].mapSproutNoteData[note].witnesses.front(); - if (!rt) { - rt = witnesses[i]->root(); - } else { - assert(*rt == witnesses[i]->root()); - } + LOCK(cs_wallet); + witnesses.resize(notes.size()); + boost::optional rt; + int i = 0; + for (JSOutPoint note : notes) { + if (mapWallet.count(note.hash) && + mapWallet[note.hash].mapSproutNoteData.count(note) && + mapWallet[note.hash].mapSproutNoteData[note].witnesses.size() > 0) { + witnesses[i] = mapWallet[note.hash].mapSproutNoteData[note].witnesses.front(); + if (!rt) { + rt = witnesses[i]->root(); + } else { + assert(*rt == witnesses[i]->root()); } - i++; - } - // All returned witnesses have the same anchor - if (rt) { - final_anchor = *rt; } + i++; + } + // All returned witnesses have the same anchor + if (rt) { + final_anchor = *rt; } }