Skip to content

Commit

Permalink
Merge pull request VerusCoin#240 from monkins1010/patch-9
Browse files Browse the repository at this point in the history
Update pbaas.cpp typo
  • Loading branch information
miketout committed Oct 31, 2023
2 parents e952c28 + 1a9ef90 commit 7fc9278
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pbaas/pbaas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7220,7 +7220,7 @@ bool CConnectedChains::GetReserveDeposits(const uint160 &currencyID, const CCoin
return true;
}

bool CConnectedChains::GetUnspentByIndex(const uint160 &indexID, std::vector<std::pair<CInputDescriptor, uint32_t>> &unspentOutptus)
bool CConnectedChains::GetUnspentByIndex(const uint160 &indexID, std::vector<std::pair<CInputDescriptor, uint32_t>> &unspentOutputs)
{
std::vector<CAddressUnspentDbEntry> confirmedUTXOs;
std::vector<std::pair<CMempoolAddressDeltaKey, CMempoolAddressDelta>> unconfirmedUTXOs;
Expand Down Expand Up @@ -7252,7 +7252,7 @@ bool CConnectedChains::GetUnspentByIndex(const uint160 &indexID, std::vector<std
if (!mempool.mapNextTx.count(COutPoint(oneConfirmed.first.txhash, oneConfirmed.first.index)) &&
oneConfirmed.second.script.IsPayToCryptoCondition(p) && p.IsValid())
{
unspentOutptus.push_back(std::make_pair(CInputDescriptor(oneConfirmed.second.script, oneConfirmed.second.satoshis,
unspentOutputs.push_back(std::make_pair(CInputDescriptor(oneConfirmed.second.script, oneConfirmed.second.satoshis,
CTxIn(oneConfirmed.first.txhash, oneConfirmed.first.index)),
(uint32_t)oneConfirmed.second.blockHeight));
}
Expand All @@ -7262,7 +7262,7 @@ bool CConnectedChains::GetUnspentByIndex(const uint160 &indexID, std::vector<std
for (auto &oneUnconfirmed : memPoolOuts)
{
const CTransaction oneTx = mempool.mapTx.find(oneUnconfirmed.first.txhash)->GetTx();
unspentOutptus.push_back(std::make_pair(CInputDescriptor(oneTx.vout[oneUnconfirmed.first.index].scriptPubKey, oneUnconfirmed.second.amount,
unspentOutputs.push_back(std::make_pair(CInputDescriptor(oneTx.vout[oneUnconfirmed.first.index].scriptPubKey, oneUnconfirmed.second.amount,
CTxIn(oneUnconfirmed.first.txhash, oneUnconfirmed.first.index)),
0));
}
Expand Down

0 comments on commit 7fc9278

Please sign in to comment.