From 03fbd7904903928b0d1c8542a3d597aaf5bdd31b Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Tue, 5 Jul 2011 16:42:32 +0200 Subject: get rid of mapPubKeys Make CKeyStore's interface work on uint160's instead of pubkeys, so no separate global mapPubKeys is necessary anymore. --- src/wallet.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/wallet.h') 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 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; } -- cgit v1.2.3