File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,16 @@ class CFeeRate
39
39
// We've previously had bugs creep in from silent double->int conversion...
40
40
static_assert (std::is_integral<I>::value, " CFeeRate should be used without floats" );
41
41
}
42
- /* * Constructor for a fee rate in satoshis per kB. The size in bytes must not exceed (2^63 - 1)*/
42
+ /* * Constructor for a fee rate in satoshis per kvB (sat/kvB). The size in bytes must not exceed (2^63 - 1).
43
+ *
44
+ * Passing an nBytes value of COIN (1e8) returns a fee rate in satoshis per vB (sat/vB),
45
+ * e.g. (nFeePaid * 1e8 / 1e3) == (nFeePaid / 1e5),
46
+ * where 1e5 is the ratio to convert from BTC/kvB to sat/vB.
47
+ *
48
+ * @param[in] nFeePaid CAmount fee rate to construct with
49
+ * @param[in] nBytes size_t bytes (units) to construct with
50
+ * @returns fee rate
51
+ */
43
52
CFeeRate (const CAmount& nFeePaid, size_t nBytes);
44
53
/* *
45
54
* Return the fee in satoshis for the given size in bytes.
You can’t perform that action at this time.
0 commit comments