This changes range: {begin: ..., end: ...} parameter for deriveaddress to range: {start: ..., end: ...} to be consistent with importmulti.
[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-
Sjors commented at 4:22 PM on February 27, 2019: member
-
[rpc] deriveaddress: rename range 'begin' argument to 'start' 483b1c05c4
-
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.
-
instagibbs commented at 4:29 PM on February 27, 2019: member
-
promag commented at 4:30 PM on February 27, 2019: member
- initially was
start - then I've suggested
begin#14667 (review) - then @instagibbs noted the inconsistency #14667 (review)
After consistency, personally I prefer begin/end and start/stop.
- initially was
-
Sjors commented at 4:32 PM on February 27, 2019: member
I can change
importmultito usebegin ... endinstead if people prefer. I findstart ... endandbegin ... endfine, but notstart ... stop. - MarcoFalke added the label Docs on Feb 27, 2019
- MarcoFalke added this to the milestone 0.18.0 on Feb 27, 2019
-
laanwj commented at 6:16 PM on February 27, 2019: member
Good catch. Makes sense to at least be consistent between calls.
-
meshcollider commented at 8:21 PM on February 27, 2019: contributor
-
sipa commented at 8:29 PM on February 27, 2019: member
Given that both
importmultiandderiveaddressare new in 0.18, would it be worthwhile to make it compatible withscantxoutset(which uses a parameter called "range", but not start position)? -
instagibbs commented at 8:31 PM on February 27, 2019: member
@sipa
importmultiwould have collisions if you try to import 100, then another 100? -
sipa commented at 8:34 PM on February 27, 2019: member
@instagibbs Well clearly
importmultishould 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 withscantxoutset(which is already in 0.17). What about"range" : [start,stop]for start-stop, and"range" : stopfor 0-stop? -
sipa commented at 10:55 PM on February 27, 2019: member
@instagibbs See #15497.
-
DrahtBot commented at 11:48 PM on February 27, 2019: member
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--174a7506f384e20aa4161008e828411d-->
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.
- laanwj removed this from the milestone 0.18.0 on Feb 28, 2019
- Sjors closed this on Feb 28, 2019
- MarcoFalke referenced this in commit a6d7026a45 on Mar 1, 2019
- dzutto referenced this in commit f5e52489c7 on Dec 1, 2021
- MarcoFalke locked this on Dec 16, 2021