Skip to content

Commit

Permalink
Typo fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
levonpetrosyan93 committed Nov 29, 2024
1 parent 3bfe8ac commit 8859752
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/txdb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,12 +322,9 @@ size_t CBlockTreeDB::findAddressNumWBalance() {
std::pair<char,CAddressIndexKey> key;
if (pcursor->GetKey(key) && key.first == DB_ADDRESSINDEX && (key.second.type == AddressType::payToPubKeyHash || key.second.type == AddressType::payToExchangeAddress)) {
CAmount nValue;
if (pcursor->GetValue(nValue)) {
CAmount nValue;
// Retrieve the associated value
if (pcursor->GetValue(nValue) && nValue != 0) { // Only process non-zero values
addrMap[key.second.hashBytes] += nValue; // Accumulate balance for the address
}
// Retrieve the associated value
if (pcursor->GetValue(nValue) && nValue != 0) { // Only process non-zero values
addrMap[key.second.hashBytes] += nValue; // Accumulate balance for the address
}
}
pcursor->Next();
Expand Down

0 comments on commit 8859752

Please sign in to comment.