HomePhabricator

use XEC or BCH for bitcoin-qt depending on CLI setting

Description

use XEC or BCH for bitcoin-qt depending on CLI setting

Summary:

  • removed rarely used units in favor of a simpler base/subunit scheme
  • had to do some type juggling in the BitcoinUnits::factor(int) function to replace the magic numbers with the Currency class
  • fixed the bitcoin-qt tests to account for XEC's decimal places

Test Plan:

ninja all check check-functional
./src/qt/bitcoin-qt -regtest

see that amounts are formatted correctly

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

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

Details

Provenance
majcostaAuthored on Jun 12 2021, 21:08
majcostaPushed on Jun 13 2021, 23:55
Reviewer
Restricted Project
Differential Revision
D9672: use XEC or BCH for bitcoin-qt depending on CLI setting
Parents
rABC6c8fe417321e: Fix p2p_inv_download test
Branches
Unknown
Tags
Unknown