aboutsummaryrefslogtreecommitdiff
path: root/src/rpcwallet.cpp
diff options
context:
space:
mode:
authorGregory Maxwell <[email protected]>2013-09-12 20:50:32 -0700
committerGregory Maxwell <[email protected]>2013-09-12 20:50:32 -0700
commit4c5969b367d2b8582abc3b0018e18456a7377497 (patch)
tree6093f15e6df1d939a1ee746d3f9f9bfb54ee1490 /src/rpcwallet.cpp
parentMerge pull request #2979 from luke-jr/autoconf (diff)
parentMake validateaddress provide redeemScript (diff)
downloaddiscoin-4c5969b367d2b8582abc3b0018e18456a7377497.tar.xz
discoin-4c5969b367d2b8582abc3b0018e18456a7377497.zip
Merge pull request #2830 from petertodd/p2sh-rpc
P2SH related RPC improvements
Diffstat (limited to 'src/rpcwallet.cpp')
-rw-r--r--src/rpcwallet.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rpcwallet.cpp b/src/rpcwallet.cpp
index 14b4956a1..46338bdf2 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());