Browse Source

-prints

pull/4/head
jl777 6 years ago
parent
commit
9742bb74db
  1. 4
      src/wallet/rpcwallet.cpp
  2. 4
      src/wallet/wallet.cpp

4
src/wallet/rpcwallet.cpp

@ -1665,7 +1665,7 @@ void ListTransactions(const CWalletTx& wtx, const string& strAccount, int nMinDe
BOOST_FOREACH(const COutputEntry& r, listReceived)
{
string account;
fprintf(stderr,"recv iter %s\n",wtx.GetHash().GetHex().c_str());
//fprintf(stderr,"recv iter %s\n",wtx.GetHash().GetHex().c_str());
if (pwalletMain->mapAddressBook.count(r.destination))
account = pwalletMain->mapAddressBook[r.destination].name;
if (fAllAccounts || (account == strAccount))
@ -1817,7 +1817,7 @@ UniValue listtransactions(const UniValue& params, bool fHelp)
CWalletTx *const pwtx = (*it).second.first;
if (pwtx != 0)
{
fprintf(stderr,"pwtx iter.%d %s\n",(int32_t)pwtx->nOrderPos,pwtx->GetHash().GetHex().c_str());
//fprintf(stderr,"pwtx iter.%d %s\n",(int32_t)pwtx->nOrderPos,pwtx->GetHash().GetHex().c_str());
ListTransactions(*pwtx, strAccount, 0, true, ret, filter);
}
//else fprintf(stderr,"null pwtx\n");

4
src/wallet/wallet.cpp

@ -2537,14 +2537,14 @@ void CWalletTx::GetAmounts(list<COutputEntry>& listReceived,
{
if ( oneshot++ > 1 )
{
fprintf(stderr,"skip change vout\n");
//fprintf(stderr,"skip change vout\n");
continue;
}
}
}
else if (!(fIsMine & filter))
{
fprintf(stderr,"skip filtered vout %d %d\n",(int32_t)fIsMine,(int32_t)filter);
//fprintf(stderr,"skip filtered vout %d %d\n",(int32_t)fIsMine,(int32_t)filter);
continue;
}
// In either case, we need to get the destination address

Loading…
Cancel
Save