BOOST_FOREACH(const COutput& out, vOutputs) { // Quantity nQuantity++; // Amount nAmount += out.tx->vout[out.i].nValue; // Priority dPriorityInputs += (double)out.tx->vout[out.i].nValue * (out.nDepth+1); // Bytes CBitcoinAddress address; if(ExtractAddress(*pwalletMain, out.tx->vout[out.i].scriptPubKey, address)) { if (address.IsPair()) nBytesInputs += 213; else if (address.IsPubKey()) { CPubKey pubkey; CKeyID keyid; if (address.GetKeyID(keyid) && model->getPubKey(keyid, pubkey)) nBytesInputs += (pubkey.IsCompressed() ? 148 : 180); else nBytesInputs += 148; // in all error cases, simply assume 148 here } } }