HomePhabricator

style-only: Use std::clamp for check_ratio, rename

Description

style-only: Use std::clamp for check_ratio, rename

Summary:
This is a partial backport of core#22564
https://github.com/bitcoin/bitcoin/pull/22564/commits/eca4ca4d60599c9dbdd4e03a73beb33e9b44655a

Depends on D13088

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, sdulfari

Reviewed By: #bitcoin_abc, sdulfari

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

Details

Provenance
Carl Dong <contact@carldong.me>Authored on Feb 22 2022, 19:30
PiRKCommitted on Feb 2 2023, 11:30
PiRKPushed on Feb 2 2023, 11:30
Reviewer
Restricted Project
Differential Revision
D13089: style-only: Use std::clamp for check_ratio, rename
Parents
rABC4b236a1f34a9: style-only: Use for instead of when loading Chainstate
Branches
Unknown
Tags
Unknown