From 92eee5cb963c8295ad70c9617a520177e0501a69 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Sat, 4 Jan 2014 11:55:09 -0600 Subject: [PATCH] Populate p2sh field in decodescript RPC result. --- rpcserver.go | 1 + 1 file changed, 1 insertion(+) diff --git a/rpcserver.go b/rpcserver.go index b98ff0fc..9793429c 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -747,6 +747,7 @@ func handleDecodeScript(s *rpcServer, cmd btcjson.Cmd) (interface{}, error) { ReqSigs: reqSigs, Type: scriptType.String(), Addresses: addresses, + P2sh: hex.EncodeToString(btcutil.Hash160(script)), } return reply, nil }