@@ -1118,10 +1118,10 @@ void CWallet::MarkConflicted(const uint256& hashBlock, const uint256& hashTx)
11181118 }
11191119}
11201120
1121- void CWallet::SyncTransaction (const CTransactionRef& ptx, const CBlockIndex *pindexBlockConnected , int posInBlock) {
1121+ void CWallet::SyncTransaction (const CTransactionRef& ptx, const CBlockIndex *pindex , int posInBlock) {
11221122 const CTransaction& tx = *ptx;
11231123
1124- if (!AddToWalletIfInvolvingMe (ptx, pindexBlockConnected , posInBlock, true ))
1124+ if (!AddToWalletIfInvolvingMe (ptx, pindex , posInBlock, true ))
11251125 return ; // Not one of ours
11261126
11271127 // If a transaction changes 'conflicted' state, that changes the balance
@@ -1136,7 +1136,7 @@ void CWallet::SyncTransaction(const CTransactionRef& ptx, const CBlockIndex *pin
11361136
11371137void CWallet::TransactionAddedToMempool (const CTransactionRef& ptx) {
11381138 LOCK2 (cs_main, cs_wallet);
1139- SyncTransaction (ptx, NULL , - 1 );
1139+ SyncTransaction (ptx);
11401140}
11411141
11421142void CWallet::BlockConnected (const std::shared_ptr<const CBlock>& pblock, const CBlockIndex *pindex, const std::vector<CTransactionRef>& vtxConflicted) {
@@ -1150,7 +1150,7 @@ void CWallet::BlockConnected(const std::shared_ptr<const CBlock>& pblock, const
11501150 // the notification that the conflicted transaction was evicted.
11511151
11521152 for (const CTransactionRef& ptx : vtxConflicted) {
1153- SyncTransaction (ptx, NULL , - 1 );
1153+ SyncTransaction (ptx);
11541154 }
11551155 for (size_t i = 0 ; i < pblock->vtx .size (); i++) {
11561156 SyncTransaction (pblock->vtx [i], pindex, i);
@@ -1161,7 +1161,7 @@ void CWallet::BlockDisconnected(const std::shared_ptr<const CBlock>& pblock) {
11611161 LOCK2 (cs_main, cs_wallet);
11621162
11631163 for (const CTransactionRef& ptx : pblock->vtx ) {
1164- SyncTransaction (ptx, NULL , - 1 );
1164+ SyncTransaction (ptx);
11651165 }
11661166}
11671167
0 commit comments