mirror of
https://github.com/btcsuite/btcd.git
synced 2024-11-19 09:50:08 +01:00
Populate p2sh field in decodescript RPC result.
This commit is contained in:
parent
4cb1500a0b
commit
92eee5cb96
@ -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 New Issue
Block a user