diff options
Diffstat (limited to 'src/wallet.h')
-rw-r--r-- | src/wallet.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wallet.h b/src/wallet.h index c19b3f43c7..277d0b1e79 100644 --- a/src/wallet.h +++ b/src/wallet.h @@ -104,10 +104,10 @@ public: } bool IsChange(const CTxOut& txout) const { - std::vector<unsigned char> vchPubKey; - if (ExtractPubKey(txout.scriptPubKey, this, vchPubKey)) + uint160 hash160; + if (ExtractHash160(txout.scriptPubKey, this, hash160)) CRITICAL_BLOCK(cs_mapAddressBook) - if (!mapAddressBook.count(PubKeyToAddress(vchPubKey))) + if (!mapAddressBook.count(Hash160ToAddress(hash160))) return true; return false; } |