aboutsummaryrefslogtreecommitdiff
path: root/script.h
diff options
context:
space:
mode:
Diffstat (limited to 'script.h')
-rw-r--r--script.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/script.h b/script.h
index 9e41889150..dc47e1d836 100644
--- a/script.h
+++ b/script.h
@@ -580,6 +580,11 @@ public:
*this << OP_DUP << OP_HASH160 << hash160 << OP_EQUALVERIFY << OP_CHECKSIG;
}
+ void SetBitcoinAddress(const vector<unsigned char>& vchPubKey)
+ {
+ SetBitcoinAddress(Hash160(vchPubKey));
+ }
+
bool SetBitcoinAddress(const string& strAddress)
{
this->clear();