HomePhabricator

test: Add cost_of_change parameter assertions to bnb_search_test

Description

test: Add cost_of_change parameter assertions to bnb_search_test

Summary:
Backport of core PR18195.

Since we don't support multiplication with a double (see amount.h),
the 0.9 * CENT has been updated to 9 * CENT / 10 and so on, so the
amounts remain integers.

Test Plan:

ninja check-bitcoin-coinselector_tests

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

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

Details

Provenance
Yancy Ribbens <yancy.ribbens@gmail.com>Authored on Feb 20 2020, 20:59
FabienCommitted on Nov 10 2020, 16:36
FabienPushed on Nov 10 2020, 16:37
Reviewer
Restricted Project
Differential Revision
D8353: test: Add cost_of_change parameter assertions to bnb_search_test
Parents
rABCe0818f956ab2: Fix `bitcoin-qt -version` output formatting
Branches
Unknown
Tags
Unknown