Data structure storing a fee and size.
Synopsis
Declared in <util/feefrac.h>
struct FeeFrac;
Description
The size of a FeeFrac cannot be zero unless the fee is also zero.
Member Functions
Name |
Description |
|
Constructors |
Copy‐assign the fee and size from another FeeFrac. |
|
Compute the fee for a given size |
|
Compute the fee for a given size |
|
Compute the fee for a given size |
|
Check if this is empty (size and fee are 0). |
|
Add fee and size of another FeeFrac to this one. |
|
Subtract fee and size of another FeeFrac from this one. |
Static Member Functions
Name |
Description |
Helper function for 96/32 signed division, rounding towards negative infinity (if round_down), or towards positive infinity (if !round_down). This is a version relying on __int128. |
|
Helper function for 96/32 signed division, rounding towards negative infinity (if round_down) or positive infinity (if !round_down). This is a fallback version, separate so that it can be tested on platforms where it isn't actually needed. |
|
Helper function for 32*64 signed multiplication, returning an unspecified but totally ordered type. This is a version relying on __int128. |
|
Helper function for 32*64 signed multiplication, returning an unspecified but totally ordered type. This is a fallback version, separate so it can be tested on platforms where it isn't actually needed. |
Data Members
Friends
Name |
Description |
Swap two FeeFracs. |
|
Check if two FeeFrac objects are equal (both same fee and same size). |
|
Subtract both fee and size. |
|
Sum fee and size. |
Non-Member Functions
Name |
Description |
Compute the feerates of the chunks of linearization. Identical to ChunkLinearizationInfo, but only returns the chunk feerates, not the corresponding transaction sets. |
Derived Classes
Name |
Description |
Tagged wrapper around FeeFrac to avoid unit confusion. |
Created with MrDocs