HomePhabricator

[tests] refactor interface_rest.py to avoid code repetition

Description

[tests] refactor interface_rest.py to avoid code repetition

Summary:

Also refactor txout index parsing and formatting.

Partial backport of core PR12766 (commit ad00fbe)
https://github.com/bitcoin/bitcoin/pull/12766/commits/ad00fbed3cfcfe7e921500179183589ac4aad419

Depends on D3767

Test Plan:

./test/functional/test_runner.py interface_rest

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

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

Details

Provenance
John Newbery <john@johnnewbery.com>Authored on Mar 22 2018, 20:37
FabienCommitted on Aug 5 2019, 07:04
FabienPushed on Aug 5 2019, 07:04
Reviewer
Restricted Project
Differential Revision
D3768: [tests] refactor interface_rest.py to avoid code repetition
Parents
rABCb410cbcdf1bb: [tests] Make json request building more consistent in interface_rest.py
Branches
Unknown
Tags
Unknown