Remove extra indentation
This commit is contained in:
parent
8e8279e728
commit
29523dc778
|
@ -1473,28 +1473,26 @@ void CWallet::GetSproutNoteWitnesses(std::vector<JSOutPoint> notes,
|
||||||
std::vector<boost::optional<ZCIncrementalWitness>>& witnesses,
|
std::vector<boost::optional<ZCIncrementalWitness>>& witnesses,
|
||||||
uint256 &final_anchor)
|
uint256 &final_anchor)
|
||||||
{
|
{
|
||||||
{
|
LOCK(cs_wallet);
|
||||||
LOCK(cs_wallet);
|
witnesses.resize(notes.size());
|
||||||
witnesses.resize(notes.size());
|
boost::optional<uint256> rt;
|
||||||
boost::optional<uint256> rt;
|
int i = 0;
|
||||||
int i = 0;
|
for (JSOutPoint note : notes) {
|
||||||
for (JSOutPoint note : notes) {
|
if (mapWallet.count(note.hash) &&
|
||||||
if (mapWallet.count(note.hash) &&
|
mapWallet[note.hash].mapSproutNoteData.count(note) &&
|
||||||
mapWallet[note.hash].mapSproutNoteData.count(note) &&
|
mapWallet[note.hash].mapSproutNoteData[note].witnesses.size() > 0) {
|
||||||
mapWallet[note.hash].mapSproutNoteData[note].witnesses.size() > 0) {
|
witnesses[i] = mapWallet[note.hash].mapSproutNoteData[note].witnesses.front();
|
||||||
witnesses[i] = mapWallet[note.hash].mapSproutNoteData[note].witnesses.front();
|
if (!rt) {
|
||||||
if (!rt) {
|
rt = witnesses[i]->root();
|
||||||
rt = witnesses[i]->root();
|
} else {
|
||||||
} else {
|
assert(*rt == witnesses[i]->root());
|
||||||
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue