diff options
author | MarcoFalke <falke.marco@gmail.com> | 2019-03-01 09:13:05 -0500 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2019-03-01 09:13:18 -0500 |
commit | a6d7026a45c915794338c178b7f95d5c1f8e977f (patch) | |
tree | 3b6eedfa8dc44000116f027ab7b3e3f22a3473d4 /src/test/crypto_tests.cpp | |
parent | e8612adc5d074f1e571bd20de97e909615cd00a8 (diff) | |
parent | ca253f6ebf2c9a12f5cb2b4c9f575178d058a612 (diff) |
Merge #15497: rpc: Consistent range arguments in scantxoutset/importmulti/deriveaddresses
ca253f6ebf Make deriveaddresses use stop/[start,stop] notation for ranges (Pieter Wuille)
1675b7ce55 Use stop/[start,stop] notation in importmulti desc range (Pieter Wuille)
4566011631 Add support for stop/[start,stop] ranges to scantxoutset (Pieter Wuille)
6b9f45e81b Support ranges arguments in RPC help (Pieter Wuille)
7aa6a8aefb Add ParseRange function to parse args of the form int/[int,int] (Pieter Wuille)
Pull request description:
This introduces a consistent notation for RPC arguments in `scantxoutset`, `importmulti`, and `deriveaddresses`, either:
* `"range" : int` to just specify the end of the range
* `"range" : [int,int]` to specify both the begin and the end of the range.
For `scantxoutset`, this is a backward compatible new feature. For the two other RPCs, it's an incompatible change, but neither of them has been in a release so far. Because of that non-released reason, this only makes sense in 0.18, in my opinion.
I suggest this as an alternative to #15496, which only makes `deriveaddresses` compatible with `importmulti`, but not with the existing `scantxoutset` RPC. I also think `[int,int]` is more convenient than `{"start":int,"stop":int}`.
I realize this is technically a feature added to `scantxoutset` after the feature freeze. If desired, I'll drop the `scantxoutset` changes.
Tree-SHA512: 1cbebb90cf34f106786dbcec7afbf3f43fb8b7e46cc7e6763faf1bc1babf12375a1b3c3cf86ee83c21ed2171d99b5a2f60331850bc613db25538c38b6a056676
Diffstat (limited to 'src/test/crypto_tests.cpp')
0 files changed, 0 insertions, 0 deletions