depend/zcash/src/wallet/wallet.cpp
/**
 * Update mapSproutNullifiersToNotes and mapSaplingNullifiersToNotes
 * with the cached nullifiers in this tx.
 */
Update mapSproutNullifiersToNotes and mapSaplingNullifiersToNotes
with the cached nullifiers in this tx.
Update mapSproutNullifiersToNotes and mapSaplingNullifiersToNotes with the cached nullifiers in this tx .
void CWallet::UpdateNullifierNoteMapWithTx(const CWalletTx& wtx)
{
    {
        LOCK(cs_wallet);
        for (const mapSproutNoteData_t::value_type& item : wtx.mapSproutNoteData) {
            if (item.second.nullifier) {
                mapSproutNullifiersToNotes[*item.second.nullifier] = item.first;
            }
        }
        for (const mapSaplingNoteData_t::value_type& item : wtx.mapSaplingNoteData) {
            if (item.second.nullifier) {
                mapSaplingNullifiersToNotes[*item.second.nullifier] = item.first;
            }
        }
    }
}
void CWallet :: UpdateNullifierNoteMapWithTx ( const CWalletTx & wtx ) { { LOCK ( cs_wallet ) ; for ( const mapSproutNoteData_t :: value_type & item : wtx . mapSproutNoteData ) { if ( item . second . nullifier ) { mapSproutNullifiersToNotes [ * item . second . nullifier ] = item . first ; } } for ( const mapSaplingNoteData_t :: value_type & item : wtx . mapSaplingNoteData ) { if ( item . second . nullifier ) { mapSaplingNullifiersToNotes [ * item . second . nullifier ] = item . first ; } } } }
Update mapSproutNullifiersToNotes and mapSaplingNullifiersToNotes
 with the cached nullifiers in this tx.
Update mapSproutNullifiersToNotes and mapSaplingNullifiersToNotes with the cached nullifiers in this tx .