src/qt/walletmodel.cpp
foreach(const SendCoinsRecipient &rcp, recipients)
    {
        std::string strAddress = rcp.address.toStdString();
        CTxDestination dest = CTrianglesAddress(strAddress).Get();
        std::string strLabel = rcp.label.toStdString();
        {
            LOCK(wallet->cs_wallet);

            
                std::map<CTxDestination, std::string>::iterator mi = wallet->mapAddressBook.find(dest);
                
                // Check if we have a new address or an updated label
                if (mi == wallet->mapAddressBook.end() || mi->second != strLabel)
                {
                    wallet->SetAddressBookName(dest, strLabel);
                };
            //};
        }
    }
// Add addresses / update labels that we've sent to to the address book
Add addresses / update labels that we've sent to to the address book
Add addresses / update labels that we ' ve sent to to the address book
foreach(const SendCoinsRecipient &rcp, recipients)
    {
        std::string strAddress = rcp.address.toStdString();
        CTxDestination dest = CTrianglesAddress(strAddress).Get();
        std::string strLabel = rcp.label.toStdString();
        {
            LOCK(wallet->cs_wallet);
                std::map<CTxDestination, std::string>::iterator mi = wallet->mapAddressBook.find(dest);
                if (mi == wallet->mapAddressBook.end() || mi->second != strLabel)
                {
                    wallet->SetAddressBookName(dest, strLabel);
                };
        }
    }
foreach ( const SendCoinsRecipient & rcp , recipients ) { std :: string strAddress = rcp . address . toStdString ( ) ; CTxDestination dest = CTrianglesAddress ( strAddress ) . Get ( ) ; std :: string strLabel = rcp . label . toStdString ( ) ; { LOCK ( wallet -> cs_wallet ) ; std :: map < CTxDestination , std :: string > :: iterator mi = wallet -> mapAddressBook . find ( dest ) ; if ( mi == wallet -> mapAddressBook . end ( ) || mi -> second != strLabel ) { wallet -> SetAddressBookName ( dest , strLabel ) ; } ; } }
Add addresses / update labels that we've sent to to the address book
Add addresses / update labels that we ' ve sent to to the address book
// Check if we have a new address or an updated label //};