HomePhabricator

rpc: make generatetoaddress locals const

Description

rpc: make generatetoaddress locals const

Summary:
and named the same as in generatetodescriptor just above.

This is a backport of core#19133 [2/10]
https://github.com/bitcoin/bitcoin/pull/19133/commits/9be7fd35c5d631c2cc34d3b4fa63ae0a9d5a68ef

Backport note: we use get_int64 instead of get_int for max_tries because of D7138

Depends on D9941

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

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

Details

Provenance
Jon Atack <jon@atack.com>Authored on May 31 2020, 12:15
PiRKCommitted on Aug 26 2021, 08:10
PiRKPushed on Aug 26 2021, 08:10
Reviewer
Restricted Project
Differential Revision
D9942: rpc: make generatetoaddress locals const
Parents
rABC1fed526a76d7: rpc: create rpc/mining.h, hoist default max tries values to constant
Branches
Unknown
Tags
Unknown