Danger: fee_rate
in FundRawTransactionOptions
may cause broken code losing money
#320
Milestone
fee_rate
in FundRawTransactionOptions
may cause broken code losing money
#320
So apparently Bitcoin Core accepts both
fee_rate
andfeeRate
with different semantics. Serialization in this crate uses the camel case version which is not documented and thus anyone using it may falsely assume it's the lower case one since that is how the field is named (by Rust convention).This really needs to be changed to
FeeRate
from thebitcoin
crate and handled properly.Note: Found by seeing this: https://twitter.com/rot13maxi/status/1727667840012923302
Note2: if author of the tweet or any of the 15 people who liked it and bookmarked it sees this: Why the fuck you didn't open this issue already?! How we're supposed to know about a critical problem if you keep it on twitter? I don't spend time on twitter so that I can improve the libraries you depend on. I found this by insane luck that someone shared an article which shared the tweet which had that response.
The text was updated successfully, but these errors were encountered: