diff options
author | Andrew Chow <achow101-github@achow101.com> | 2021-09-10 20:24:44 -0400 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-02-15 09:22:06 +0000 |
commit | bd7e08e36bf2e1238ddf8cc01433f8db82f848c9 (patch) | |
tree | 73ec009a39a25062b7bff8c09faa44bdd5a7f7b8 /src/randomenv.h | |
parent | 227ae652542451834faddbaffb54fc384e9156e6 (diff) |
fees: Always round up fee calculated from a feerate
When calculating the fee for a given tx size from a fee rate, we should
always round up to the next satoshi. Otherwise, if we round down (via
truncation), the calculated fee may result in a fee with a feerate
slightly less than targeted.
This is particularly important for coin selection as a slightly lower
feerate than expected can result in a variety of issues.
Github-Pull: #22949
Rebased-From: 0fbaef9676a1dcb84bcf95afd8d994831ab327b6
Diffstat (limited to 'src/randomenv.h')
0 files changed, 0 insertions, 0 deletions