From 922e8e2929a2e78270868385aa46f96002fbcff3 Mon Sep 17 00:00:00 2001 From: Gavin Andresen Date: Wed, 4 Jan 2012 21:40:52 -0500 Subject: Replace OP_EVAL (BIP 12) with Pay-to-script-hash (BIP 16). --- src/keystore.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/keystore.cpp') diff --git a/src/keystore.cpp b/src/keystore.cpp index 6c3ed3492..61d84ec0f 100644 --- a/src/keystore.cpp +++ b/src/keystore.cpp @@ -36,10 +36,10 @@ bool CBasicKeyStore::AddKey(const CKey& key) return true; } -bool CBasicKeyStore::AddCScript(const uint160 &hash, const CScript& redeemScript) +bool CBasicKeyStore::AddCScript(const CScript& redeemScript) { CRITICAL_BLOCK(cs_KeyStore) - mapScripts[hash] = redeemScript; + mapScripts[Hash160(redeemScript)] = redeemScript; return true; } -- cgit v1.2.3