Make validateaddress provide redeemScript

This commit is contained in:
Peter Todd 2013-07-15 03:07:38 -04:00
parent be066fad7d
commit 2253642287
No known key found for this signature in database
GPG key ID: 2481403DA5F091FB

View file

@ -1447,6 +1447,7 @@ public:
int nRequired;
ExtractDestinations(subscript, whichType, addresses, nRequired);
obj.push_back(Pair("script", GetTxnOutputType(whichType)));
obj.push_back(Pair("hex", HexStr(subscript.begin(), subscript.end())));
Array a;
BOOST_FOREACH(const CTxDestination& addr, addresses)
a.push_back(CBitcoinAddress(addr).ToString());