src/wallet.cpp
// Sent/received.  Standard client will never generate a send-to-multiple-recipients,
// but non-standard clients might (so return a list of address/amount pairs)
Sent/received.  Standard client will never generate a send-to-multiple-recipients,
but non-standard clients might (so return a list of address/amount pairs)
Sent / received . Standard client will never generate a send - to - multiple - recipients but non - standard clients might ( so return a list of address / amount pairs )
BOOST_FOREACH(const CTxOut& txout, vout)
    {
        string address;
        uint160 hash160;
        vector<unsigned char> vchPubKey;
        if (ExtractHash160(txout.scriptPubKey, hash160))
            address = Hash160ToAddress(hash160);
        else if (ExtractPubKey(txout.scriptPubKey, NULL, vchPubKey))
            address = PubKeyToAddress(vchPubKey);
        else if (hooks->ExtractAddress(txout.scriptPubKey, address))
            ;
        else
        {
            printf("CWalletTx::GetAmounts: Unknown transaction type found, txid %s\n",
                   this->GetHash().ToString().c_str());
            address = " unknown ";
        }
        if (nDebit > 0 && pwallet->IsChange(txout))
            continue;
        if (nDebit > 0)
            listSent.push_back(make_pair(address, txout.nValue));
        if (pwallet->IsMine(txout) || hooks->IsMine(*this, txout))
            listReceived.push_back(make_pair(address, txout.nValue));
    }
BOOST_FOREACH ( const CTxOut & txout , vout ) { string address ; uint160 hash160 ; vector < unsigned char > vchPubKey ; if ( ExtractHash160 ( txout . scriptPubKey , hash160 ) ) address = Hash160ToAddress ( hash160 ) ; else if ( ExtractPubKey ( txout . scriptPubKey , NULL , vchPubKey ) ) address = PubKeyToAddress ( vchPubKey ) ; else if ( hooks -> ExtractAddress ( txout . scriptPubKey , address ) ) ; else { printf ( " \n " , this -> GetHash ( ) . ToString ( ) . c_str ( ) ) ; address = " " ; } if ( nDebit > 0 && pwallet -> IsChange ( txout ) ) continue ; if ( nDebit > 0 ) listSent . push_back ( make_pair ( address , txout . nValue ) ) ; if ( pwallet -> IsMine ( txout ) || hooks -> IsMine ( * this , txout ) ) listReceived . push_back ( make_pair ( address , txout . nValue ) ) ; }
Sent/received.
Sent / received .
// Don't report 'change' txouts