aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2011-07-05 16:42:32 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2011-07-17 12:07:59 +0200
commit03fbd7904903928b0d1c8542a3d597aaf5bdd31b (patch)
tree562344a9b651ea1b2cc3f7ffd348377e5bed6090 /src/wallet.h
parent133ccbe4087514501dec1f7496c62489437f0db8 (diff)
downloadbitcoin-03fbd7904903928b0d1c8542a3d597aaf5bdd31b.tar.xz
get rid of mapPubKeys
Make CKeyStore's interface work on uint160's instead of pubkeys, so no separate global mapPubKeys is necessary anymore.
Diffstat (limited to 'src/wallet.h')
-rw-r--r--src/wallet.h6
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;
}