HomePhabricator

[backport#16285] rpc: Improve scantxoutset response and help message

Description

[backport#16285] rpc: Improve scantxoutset response and help message

Summary:
qa: Check scantxoutset result against gettxoutsetinfo (João Barbosa)
rpc: Improve scantxoutset response and help message (João Barbosa)

Pull request description:

The new response keys `height` and `bestblock` allow the client to know at what point the scan took place.

The help message now has all the response keys (`result` and `txouts` were missing) and it's improved a bit. Note that `searched_items` key is renamed to `txouts`, considering `scantxoutset` is marked experimental.

Backport of Core PR16285

Test Plan:

ninja check check-functional

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D7402

Details

Provenance
Wladimir J. van der Laan <laanwj@protonmail.com>Authored on Sep 9 2019, 06:08
majcostaCommitted on Sep 8 2020, 23:25
majcostaPushed on Sep 8 2020, 23:25
Reviewer
Restricted Project
Differential Revision
D7402: [backport#16285] rpc: Improve scantxoutset response and help message
Parents
rABCeee12dd8dd4d: Bump bitcoin-abc AUR package version to 0.22.2
Branches
Unknown
Tags
Unknown