Account for rounding of fee rate in CPFP test (#2423)

This commit is contained in:
Ben Carman 2020-12-23 07:18:42 -06:00 committed by GitHub
parent 3f18ba18d7
commit 90e2a4b6f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -370,7 +370,8 @@ class WalletSendingTest extends BitcoinSWalletTest {
SatoshisPerKW.calc(inputAmount, child)
}
assert(childFeeRate == bumpRate)
// Do +/- scale factor because of rounding errors
assert(childFeeRate.toLong === bumpRate.toLong +- bumpRate.scaleFactor)
}
}