HomePhabricator

consensus: move amount.h into consensus

Description

consensus: move amount.h into consensus

Summary:
Move amount.h to consensus/amount.h.
Renames, adds missing and removes uneeded includes.

Also make MAX_MONEY constexpr

This is a backport of core#22951

Test Plan:
ninja all check-all bitcoin-fuzzers bench-bitcoin

grep -r "<amount.h>" src/

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

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

Details

Provenance
fanquake <fanquake@gmail.com>Authored on Sep 11 2021, 02:29
PiRKCommitted on Oct 10 2022, 08:19
PiRKPushed on Oct 10 2022, 08:19
Reviewer
Restricted Project
Differential Revision
D12164: consensus: move amount.h into consensus
Parents
rABC696d5d33e28b: [avalanche] Cleanup the proof voting test
Branches
Unknown
Tags
Unknown