Browse Source

try

pull/27/head
blackjok3r 6 years ago
parent
commit
dbf49cd4d2
  1. 6
      src/wallet/wallet.cpp

6
src/wallet/wallet.cpp

@ -1207,14 +1207,14 @@ bool CWallet::AddToWalletIfInvolvingMe(const CTransaction& tx, const CBlock* pbl
bool fExisted = mapWallet.count(tx.GetHash()) != 0;
if (fExisted && !fUpdate) return false;
auto noteData = FindMyNotes(tx);
bool mine = IsMine(tx);
bool isent = IsFromMe(tx);
if (fExisted || mine || isent || noteData.size() > 0)
if (fExisted || IsMine(tx) || IsFromMe(tx) || noteData.size() > 0)
{
int64_t totalvoutvalue = 0;
for (size_t i = 0; i < tx.vout.size() ; i++) {
totalvoutvalue = totalvoutvalue + tx.vout[i].nValue;
if ( IsMine(tx.vout[i].prevout) )
fprintf(stderr, "prevout is mine? %s\n");
if (IsChange(tx.vout[i])) {
fprintf(stderr, "tx %ld is change of: %ld\n",i, tx.vout[i].nValue );
} else {

Loading…
Cancel
Save