HomePhabricator

[test] add typehints to create_block and create_coinbase

Description

[test] add typehints to create_block and create_coinbase

Summary:
These functions are hard to use without first looking at other tests, because the parameter types are not obvious. This improves the documentation and IDE hints for these functions.

Also remove a pair of redundant parentheses.

Test Plan: ninja check-functional-extended

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
PiRKAuthored on Apr 8 2022, 07:53
PiRKPushed on Apr 8 2022, 14:04
Reviewer
Restricted Project
Differential Revision
D11320: [test] add typehints to create_block and create_coinbase
Parents
rABCf2403c070739: [test] remove unnecessary transaction rehashing
Branches
Unknown
Tags
Unknown