You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
payjoin-cli FeeRate arguments have differing types #452
max_fee_rate takes a u64 while --fee-rate takes an f32
I do think an f32 is natural for this type for granular.
FeeRate arguments need attention in general in this crate. Some arguments are named sat_per_vb when they take a FeeRate type and don't need to specify that, for example.
And in payjoin-cli the feerate type should really be parsed from the argument directly rather than having business logic do it inside send/receive functionality.
Not sure if this is what you meant in the last paragraph, but IMO only main.rs should deal with anything that isn't FeeRate, be it float or int, sat/vb or sat/kwu, whatever...
Yeah that's the vibe of what I was saying. We should use clap's Arg::value_parser to convert the string argument directly into the strongest appropriate type before passing to App functions.
Activity
nothingmuch commentedon Jan 2, 2025
Not sure if this is what you meant in the last paragraph, but IMO only main.rs should deal with anything that isn't
FeeRate, be it float or int, sat/vb or sat/kwu, whatever...Separate send version modules (part 1) (#453)
DanGould commentedon Jan 2, 2025
Yeah that's the vibe of what I was saying. We should use
clap'sArg::value_parserto convert the string argument directly into the strongest appropriate type before passing toAppfunctions.use FeeRate for max_fee_rate arg, and default it to BROADCAST_MIN (#491)