HomePhabricator

test: Add generatetodescriptor RPC

Description

test: Add generatetodescriptor RPC

Summary:

The existing generatetoaddress RPC can only generate to scriptPubKeys
that can be represented by an address. However, raw scripts (such as
OP_TRUE) or P2PK can not be represented by an address, which complicates
testing.

Backport of core PR16943.

Depends on D7983.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

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

Details

Provenance
MarcoFalke <falke.marco@gmail.com>Authored on Sep 23 2019, 18:27
FabienCommitted on Oct 19 2020, 20:42
FabienPushed on Oct 19 2020, 20:43
Reviewer
Restricted Project
Differential Revision
D7984: test: Add generatetodescriptor RPC
Parents
rABC3345d011bb0c: [rpc] Correct reconsiderblock help text, add test
Branches
Unknown
Tags
Unknown