Browse Source

Make validateaddress provide redeemScript

0.10
Peter Todd 12 years ago
parent
commit
2253642287
No known key found for this signature in database
GPG Key ID: 2481403DA5F091FB
  1. 1
      src/rpcwallet.cpp

1
src/rpcwallet.cpp

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

Loading…
Cancel
Save