Populate p2sh field in decodescript RPC result.

This commit is contained in:
Dave Collins 2014-01-04 11:55:09 -06:00
parent 4cb1500a0b
commit 92eee5cb96

View file

@ -747,6 +747,7 @@ func handleDecodeScript(s *rpcServer, cmd btcjson.Cmd) (interface{}, error) {
ReqSigs: reqSigs, ReqSigs: reqSigs,
Type: scriptType.String(), Type: scriptType.String(),
Addresses: addresses, Addresses: addresses,
P2sh: hex.EncodeToString(btcutil.Hash160(script)),
} }
return reply, nil return reply, nil
} }