Skip to content

rpc: Clarify decodescript RPCResult doc - #15616

Merged
maflcko merged 3 commits into
bitcoin:masterfrom
maflcko:1903-rpcDocDecodeS
Mar 28, 2019
Merged

maflcko merged 3 commits into
bitcoin:masterfrom
maflcko:1903-rpcDocDecodeS

Conversation

@maflcko

@maflcko maflcko commented Mar 18, 2019 •

Copy link
Copy Markdown
Member
  • Remove "hex" from the decodescript RPCResult doc
  • Add "segwit" to the doc

Follow up to a6099ef and 4f933b3

@maflcko maflcko added the Docs label Mar 18, 2019
@maflcko maflcko added this to the 0.19.0 milestone Mar 18, 2019
@maflcko
maflcko force-pushed the 1903-rpcDocDecodeS branch 2 times, most recently from 9e403d6 to fa80f13 Compare March 18, 2019 02:26
@maflcko maflcko changed the title rpc: Remove hex from decodescript RPCResult doc rpc: Clarify decodescript RPCResult doc Mar 18, 2019
@maflcko
maflcko force-pushed the 1903-rpcDocDecodeS branch from fa80f13 to fa3caa1 Compare March 18, 2019 02:52
@DrahtBot

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #15452 (Replace CScriptID and CKeyID in CTxDestination with dedicated types by instagibbs)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@ryanofsky ryanofsky left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK fa3caa1. Looks like segwit field was added in #12321 and never documented.

Comment thread src/rpc/rawtransaction.cpp Resolved

@ryanofsky ryanofsky left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK fa926ec. Only change since last review is listing possible output types in the help string using a new GetAllOutputTypes function

@maflcko
maflcko merged commit fa926ec into bitcoin:master Mar 28, 2019
maflcko pushed a commit that referenced this pull request Mar 28, 2019
fa926ec rpc: Mention all output types in decodescript doc (MarcoFalke)
fa3caa1 rpc: decodescript use IsValidNumArgs over hardcoded check (MarcoFalke)
faad33f rpc: Clarify decodescript RPCResult doc (MarcoFalke)

Pull request description:

  * Remove `"hex"` from the decodescript RPCResult doc
  * Add `"segwit`" to the doc

  Follow up to a6099ef and 4f933b3

ACKs for commit fa926e:
  ryanofsky:
    utACK fa926ec. Only change since last review is listing possible output types in the help string using a new `GetAllOutputTypes` function

Tree-SHA512: e6ecc563d04769942567118d50188467bf64ceb276ba6268928d469e8f06621f2ca1ae1e555d3daa6ec22a615ee259bb31c4141c19818d0f53fb6c529b18381b
@maflcko
maflcko deleted the 1903-rpcDocDecodeS branch March 28, 2019 15:09
deadalnix pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Oct 26, 2020
Summary:
Mention all output types.
Remove "hex" from output.
General formatting of the output: more whitespaces

Due to backports being done out of sequential order, commit fa3caa1666a9baa856e92398a890aaddbdd98f7c (use IsValidNumArgs over hardcoded check) is not relevant for us. See D6580.

This is a backport of Core [[bitcoin/bitcoin#15616 | PR15616]]

Test Plan:
```
$ src/bitcoin-cli help decodescript
Result:
{
  "asm":"asm",          (string) Script public key
  "type":"type",        (string) The output type (e.g. nonstandard, pubkey, pubkeyhash, scripthash, multisig, nulldata)
  "reqSigs": n,         (numeric) The required signatures
  "addresses": [        (json array of string)
     "address"          (string) bitcoin address
     ,...
  ],
  "p2sh":"str"          (string) address of P2SH script wrapping this redeem script (not returned if the script is already a P2SH).
}
```

Reviewers: O1 Bitcoin ABC, #bitcoin_abc, Fabien

Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D8118
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Dec 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants