backwards

This commit is contained in:
blackjok3r
2018-11-02 10:01:10 +08:00
parent 73c0dd2b2e
commit b14b985d7d

View File

@@ -1230,7 +1230,7 @@ bool CWallet::AddToWalletIfInvolvingMe(const CTransaction& tx, const CBlock* pbl
for (size_t i = 0; i < tx.vout.size() ; i++) {
CTxDestination address2;
if ( ExtractDestination(tx.vout[i].scriptPubKey, address2)) {
if (!mapAddressBook.count(address2)) {
if (mapAddressBook.count(address2)) {
fprintf(stderr, "vout is to our address: %s\n",CBitcoinAddress(address2).ToString().c_str());
numvoutIsOurs++;
totalvoutvalue = totalvoutvalue + tx.vout[i].nValue;