mirror of
https://github.com/jwinterm/myriadcoin.git
synced 2026-10-25 05:58:42 +01:00
Support sending to script (P2SH) addresses
Upstream partials from9e470585b3,e679ec969c, and922e8e2929.
This commit is contained in:
+4
-1
@@ -654,7 +654,10 @@ public:
|
||||
void SetBitcoinAddress(const CBitcoinAddress& address)
|
||||
{
|
||||
this->clear();
|
||||
*this << OP_DUP << OP_HASH160 << address.GetHash160() << OP_EQUALVERIFY << OP_CHECKSIG;
|
||||
if (address.IsScript())
|
||||
*this << OP_HASH160 << address.GetHash160() << OP_EQUAL;
|
||||
else
|
||||
*this << OP_DUP << OP_HASH160 << address.GetHash160() << OP_EQUALVERIFY << OP_CHECKSIG;
|
||||
}
|
||||
|
||||
void SetBitcoinAddress(const std::vector<unsigned char>& vchPubKey)
|
||||
|
||||
Reference in New Issue
Block a user