[rpc] deriveaddress: rename range ‘begin’ argument to ‘start’ #15496

pull Sjors wants to merge 1 commits into bitcoin:master from Sjors:2019/02/begin_start changing 3 files +7 −7
  1. Sjors commented at 4:22 pm on February 27, 2019: member
    This changes range: {begin: ..., end: ...} parameter for deriveaddress to range: {start: ..., end: ...} to be consistent with importmulti.
  2. [rpc] deriveaddress: rename range 'begin' argument to 'start' 483b1c05c4
  3. Sjors commented at 4:23 pm on February 27, 2019: member
    Pointed out by @instagibbs in the original PR. Would be nice to get this into 0.18. Fixed a grammar nit as well.
  4. promag commented at 4:30 pm on February 27, 2019: member

    After consistency, personally I prefer begin/end and start/stop.

  5. Sjors commented at 4:32 pm on February 27, 2019: member
    I can change importmulti to use begin ... end instead if people prefer. I find start ... end and begin ... end fine, but not start ... stop.
  6. MarcoFalke added the label Docs on Feb 27, 2019
  7. MarcoFalke added this to the milestone 0.18.0 on Feb 27, 2019
  8. laanwj commented at 6:16 pm on February 27, 2019: member
    Good catch. Makes sense to at least be consistent between calls.
  9. sipa commented at 8:29 pm on February 27, 2019: member
    Given that both importmulti and deriveaddress are new in 0.18, would it be worthwhile to make it compatible with scantxoutset (which uses a parameter called “range”, but not start position)?
  10. instagibbs commented at 8:31 pm on February 27, 2019: member
    @sipa importmulti would have collisions if you try to import 100, then another 100?
  11. sipa commented at 8:34 pm on February 27, 2019: member
    @instagibbs Well clearly importmulti should support a range that doesn’t start at 0. My suggestion is whether we want to consider naming the argument “range” rather than stop or end, to be compatible with scantxoutset (which is already in 0.17). What about "range" : [start,stop] for start-stop, and "range" : stop for 0-stop?
  12. sipa commented at 10:55 pm on February 27, 2019: member
  13. DrahtBot commented at 11:48 pm on February 27, 2019: member

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

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #15497 (Consistent range arguments in scantxoutset/importmulti/deriveaddresses by sipa)

    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.

  14. laanwj removed this from the milestone 0.18.0 on Feb 28, 2019
  15. laanwj commented at 2:40 pm on February 28, 2019: member
    Replacing this with #15497 in the 0.18 milestone.
  16. Sjors closed this on Feb 28, 2019

  17. MarcoFalke referenced this in commit a6d7026a45 on Mar 1, 2019
  18. dzutto referenced this in commit f5e52489c7 on Dec 1, 2021
  19. MarcoFalke locked this on Dec 16, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-10-05 04:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me