10#include <boost/test/unit_test.hpp>
12BOOST_AUTO_TEST_SUITE(amount_tests)
103 int largeNumber = 1000000;
104 BOOST_CHECK(largeNumber * feeRate == feeRate * largeNumber);
106 int maxInt = std::numeric_limits<int>::max();
static constexpr CAmount MAX_MONEY
No amount larger than this (in satoshi) is valid.
bool MoneyRange(const CAmount &nValue)
int64_t CAmount
Amount in satoshis (Can be negative)
BOOST_AUTO_TEST_CASE(MoneyRangeTest)
Fee rate in satoshis per kilovirtualbyte: CAmount / kvB.
std::string ToString(const FeeEstimateMode &fee_estimate_mode=FeeEstimateMode::BTC_KVB) const
CAmount GetFee(uint32_t num_bytes) const
Return the fee in satoshis for the given vsize in vbytes.
CAmount GetFeePerK() const
Return the fee in satoshis for a vsize of 1000 vbytes.
BOOST_AUTO_TEST_SUITE_END()
@ BTC_KVB
Use BTC/kvB fee rate unit.
@ SAT_VB
Use sat/vB fee rate unit.
#define BOOST_CHECK_EQUAL(v1, v2)
#define BOOST_CHECK(expr)