//
// Credit
//
- BOOST_FOREACH(const CTxOut& txout, wtx.vout)
+ for (const CTxOut& txout : wtx.vout)
{
if(wallet->IsMine(txout))
{
sub.credit = txout.nValue;
CBitcoinAddress addressRet;
- if (pwalletMain->ExtractAddress(txout.scriptPubKey, addressRet))
+ if (ExtractAddress(*pwalletMain, txout.scriptPubKey, addressRet))
{
sub.type = TransactionRecord::RecvWithAddress;
sub.address = addressRet.ToString();
else
{
bool fAllFromMe = true;
- BOOST_FOREACH(const CTxIn& txin, wtx.vin)
+ for (const CTxIn& txin : wtx.vin)
fAllFromMe = fAllFromMe && wallet->IsMine(txin);
bool fAllToMe = true;
- BOOST_FOREACH(const CTxOut& txout, wtx.vout)
+ for (const CTxOut& txout : wtx.vout)
fAllToMe = fAllToMe && wallet->IsMine(txout);
if (fAllFromMe && fAllToMe)