diff options
author | Peter Todd <pete@petertodd.org> | 2013-07-15 03:07:38 -0400 |
---|---|---|
committer | Peter Todd <pete@petertodd.org> | 2013-09-12 22:54:43 -0400 |
commit | 22536422878d05a7229f74726148dd50051c883f (patch) | |
tree | 6093f15e6df1d939a1ee746d3f9f9bfb54ee1490 | |
parent | be066fad7d2a8f95d50667262f255ce67f49b51a (diff) |
Make validateaddress provide redeemScript
-rw-r--r-- | src/rpcwallet.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rpcwallet.cpp b/src/rpcwallet.cpp index 14b4956a15..46338bdf26 100644 --- a/src/rpcwallet.cpp +++ b/src/rpcwallet.cpp @@ -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()); |