HomePhabricator

[Cashtab] [p2 remove BCH.getByteCount] Replace BCH.getByteCount in calcFee

Description

[Cashtab] [p2 remove BCH.getByteCount] Replace BCH.getByteCount in calcFee

Summary:
T2730

Depends on D12376

Replace the BCH method in the calcFee function. This means that BCH is no longer an input parameter to calcFee, so it is removed in all function calls.

Test Plan:
Review updated function and npm test. Note that the existing unit test for calcFee still passes.

grep -r calcFee web/cashtab/src. Confirm that all calls to calcFee have had the BCH parameter removed.

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

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

Details

Provenance
bytesofmanAuthored on Oct 26 2022, 23:40
bytesofmanPushed on Oct 27 2022, 16:17
Reviewer
Restricted Project
Differential Revision
D12377: [Cashtab] [p2 remove BCH.getByteCount] Replace BCH.getByteCount in calcFee
Parents
rABCf830ec2875a5: [Cashtab] [p1 remove BCH.getByteCount] Create an equivalent function with unit…
Branches
Unknown
Tags
Unknown