Skip to content

Conversation

@paveljanik
Copy link
Contributor

... reported to me by other user.

@maflcko
Copy link
Member

maflcko commented Jan 10, 2016

utACK 3a9dfe9

@jmcorgan
Copy link
Contributor

utACK

@jonasschnelli
Copy link
Contributor

ACK

@murchandamus
Copy link
Contributor

@paveljanik How about "vout index"?

@instagibbs
Copy link
Member

If we're changing it I think @xekyo suggestion is best.

@paveljanik
Copy link
Contributor Author

Sorry, but:

$ git grep "The output number" *
rpcrawtransaction.cpp:            "         \"vout\":n        (numeric, required) The output number\n"
rpcrawtransaction.cpp:            "       \"vout\": n,         (numeric) The output number\n"
rpcrawtransaction.cpp:            "         \"vout\":n,                  (numeric, required) The output number\n"
wallet/rpcwallet.cpp:            "         \"vout\": n         (numeric) The output number\n"
$ 

@murchandamus
Copy link
Contributor

@paveljanik: That may be so, but this number is more specifically the position within the transaction’s outputs. That’s why "index" would be more to the point. :)
If others agree, it could be updated in all the positions that you listed. If we’re not going to change it, I agree, though, that it should be consistent.

@paveljanik
Copy link
Contributor Author

@xekyo It depends on your view. It can be index into vout array and the number of the vout in vouts. ;-)

I do not plan to change it in this PR.

@murchandamus
Copy link
Contributor

I feel that "vout number" is ambiguous: For a minute I thought you were telling me the line referred to "the number of outputs" as in how many there are.

But, since it refers to "an unspent transaction output" here, index would be an improvement because it is the correct technical term, making it easier to grasp and more precise. Anyway, your PR is an improvement to the previous state, so I ACK.

@laanwj laanwj merged commit 3a9dfe9 into bitcoin:master Jan 13, 2016
laanwj added a commit that referenced this pull request Jan 13, 2016
3a9dfe9 Fix typo, wrong information in gettxout help text. (paveljanik)
luke-jr pushed a commit to luke-jr/bitcoin that referenced this pull request Feb 12, 2016
codablock pushed a commit to codablock/dash that referenced this pull request Dec 9, 2017
3a9dfe9 Fix typo, wrong information in gettxout help text. (paveljanik)
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants