Populate p2sh field in decodescript RPC result.
This commit is contained in:
parent
4cb1500a0b
commit
92eee5cb96
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue