This repository was archived by the owner on Nov 25, 2025. It is now read-only.
Commit c0fc7cb
committed
Merge #321: Add comment clarifying fee rate in FundRawTransactionOptions
f8a1622 Add comment clarifying fee rate in FundRawTransactionOptions (Casey Rodarmor)
Pull request description:
I think this is potentially a bit of a footgun and deserves some clarification.
`fundrawtransaction` has two different ways to specify fee rate, `fee_rate`, and `feeRate`. From [the docs](https://developer.bitcoin.org/reference/rpc/fundrawtransaction.html):
```
"fee_rate" - Specify a fee rate in sat/vB.
"feeRate" - Specify a fee rate in BTC/kvB.
```
This is extra confusing because the field in FundRawTransactionOptions is called `fee_rate`, but is serde renamed to camelCase, so becomes `feeRate`.
This PR adds a comment to `FundRawTransactionOptions::fee_rate` clarifying that it's in kvB and not vB, and corresponds to the `feeRate` argument to `fundrawtransaction`.
I actually think it would it would probably be best if the rust field were renamed to `fee_rate_per_kvb`, and manually renamed to `feeRate` when serializing, but this is good quick fix.
ACKs for top commit:
tcharding:
ACK f8a1622
Tree-SHA512: 3ec1c4d5dcce51b3f14cc4825667c4fda29b818dbc9b4aa8bc5d909bdaa547d5d19f78a32b2bd406f67a5344ee0574ebcbd239a7301532fb7685b1bfd2b6dc5b1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1877 | 1877 | | |
1878 | 1878 | | |
1879 | 1879 | | |
| 1880 | + | |
| 1881 | + | |
| 1882 | + | |
1880 | 1883 | | |
1881 | 1884 | | |
1882 | 1885 | | |
| |||
0 commit comments