@@ -306,8 +306,8 @@ void CPrivateSendServer::CreateFinalTransaction(CConnman& connman)
306
306
for (const auto & txout : vecEntries[i].vecTxOut )
307
307
txNew.vout .push_back (txout);
308
308
309
- for (const auto & txdsin : vecEntries[i].vecTxPSIn )
310
- txNew.vin .push_back (txdsin );
309
+ for (const auto & txpsin : vecEntries[i].vecTxPSIn )
310
+ txNew.vin .push_back (txpsin );
311
311
}
312
312
313
313
sort (txNew.vin .begin (), txNew.vin .end (), CompareInputBIP69 ());
@@ -411,8 +411,8 @@ void CPrivateSendServer::ChargeFees(CConnman& connman)
411
411
if (nState == POOL_STATE_SIGNING) {
412
412
// who didn't sign?
413
413
for (const auto & entry : vecEntries) {
414
- for (const auto & txdsin : entry.vecTxPSIn ) {
415
- if (!txdsin .fHasSig ) {
414
+ for (const auto & txpsin : entry.vecTxPSIn ) {
415
+ if (!txpsin .fHasSig ) {
416
416
LogPrintf (" CPrivateSendServer::ChargeFees -- found uncooperative node (didn't sign), found offence\n " );
417
417
vecOffendersCollaterals.push_back (entry.txCollateral );
418
418
}
@@ -541,12 +541,12 @@ bool CPrivateSendServer::IsInputScriptSigValid(const CTxIn& txin)
541
541
for (const auto & txout : entry.vecTxOut )
542
542
txNew.vout .push_back (txout);
543
543
544
- for (const auto & txdsin : entry.vecTxPSIn ) {
545
- txNew.vin .push_back (txdsin );
544
+ for (const auto & txpsin : entry.vecTxPSIn ) {
545
+ txNew.vin .push_back (txpsin );
546
546
547
- if (txdsin .prevout == txin.prevout ) {
547
+ if (txpsin .prevout == txin.prevout ) {
548
548
nTxInIndex = i;
549
- sigPubKey = txdsin .prevPubKey ;
549
+ sigPubKey = txpsin .prevPubKey ;
550
550
}
551
551
i++;
552
552
}
@@ -599,8 +599,8 @@ bool CPrivateSendServer::AddEntry(const CPrivateSendEntry& entryNew, PoolMessage
599
599
for (const auto & txin : entryNew.vecTxPSIn ) {
600
600
LogPrint (" privatesend" , " looking for txin -- %s\n " , txin.ToString ());
601
601
for (const auto & entry : vecEntries) {
602
- for (const auto & txdsin : entry.vecTxPSIn ) {
603
- if (txdsin .prevout == txin.prevout ) {
602
+ for (const auto & txpsin : entry.vecTxPSIn ) {
603
+ if (txpsin .prevout == txin.prevout ) {
604
604
LogPrint (" privatesend" , " CPrivateSendServer::AddEntry -- found in txin\n " );
605
605
nMessageIDRet = ERR_ALREADY_HAVE;
606
606
return false ;
@@ -623,8 +623,8 @@ bool CPrivateSendServer::AddScriptSig(const CTxIn& txinNew)
623
623
LogPrint (" privatesend" , " CPrivateSendServer::AddScriptSig -- scriptSig=%s\n " , ScriptToAsmStr (txinNew.scriptSig ).substr (0 , 24 ));
624
624
625
625
for (const auto & entry : vecEntries) {
626
- for (const auto & txdsin : entry.vecTxPSIn ) {
627
- if (txdsin .scriptSig == txinNew.scriptSig ) {
626
+ for (const auto & txpsin : entry.vecTxPSIn ) {
627
+ if (txpsin .scriptSig == txinNew.scriptSig ) {
628
628
LogPrint (" privatesend" , " CPrivateSendServer::AddScriptSig -- already exists\n " );
629
629
return false ;
630
630
}
@@ -659,8 +659,8 @@ bool CPrivateSendServer::AddScriptSig(const CTxIn& txinNew)
659
659
bool CPrivateSendServer::IsSignaturesComplete ()
660
660
{
661
661
for (const auto & entry : vecEntries)
662
- for (const auto & txdsin : entry.vecTxPSIn )
663
- if (!txdsin .fHasSig )
662
+ for (const auto & txpsin : entry.vecTxPSIn )
663
+ if (!txpsin .fHasSig )
664
664
return false ;
665
665
666
666
return true ;
0 commit comments