HomePhabricator

[backport#15932] rpc: Use IsValidNumArgs in getblock

Description

[backport#15932] rpc: Use IsValidNumArgs in getblock

Summary:
https://github.com/bitcoin/bitcoin/pull/15932/commits/fa1c3591add184ecb43eb3b149f4833f241e3858


Partial backport of Core PR15932

Test Plan:

ninja check check-functional

run bitcoin-cli getblock and check that layout is nice and lined up

Reviewers: #bitcoin_abc, nakihito, deadalnix

Reviewed By: #bitcoin_abc, nakihito, deadalnix

Subscribers: deadalnix

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

Details

Provenance
MarcoFalke <falke.marco@gmail.com>Authored on May 1 2019, 15:21
majcostaCommitted on Jun 1 2020, 12:54
majcostaPushed on Jun 1 2020, 12:54
Reviewer
Restricted Project
Differential Revision
D6296: [backport#15932] rpc: Use IsValidNumArgs in getblock
Parents
rABC8a6a51a3d6d7: Make nChainTx private, ass facility to update it
Branches
Unknown
Tags
Unknown