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
ec5ee8233011269b2d0bbdf8a1647e27e61b9050 test: improve test `feerate_parsing` (valued mammal)
ed219e29455a9d38487f50d3862888b73cdb211c fix: don't return default 1.0 feerate if not found by `convert_fee_rate` (valued mammal)
Pull request description:
Change `convert_fee_rate` to return `Option<f32>` instead of Result.
PR #65 made this function effectively infallible by removing the parse int error while falling back to a bogus 1.0 feerate if a value isn't found in fee estimates. We could make it return an error if for example the given fee estimates map is empty without changing the function signature but in that case we would need a new `Error` variant making it a breaking change anyway, therefore just change the function to return `Option` which should only be `None` if given a target of 0 or an empty map assuming esplora always has a fee estimate for a target of 1 confirmation.
fixes #80
ACKs for top commit:
notmandatory:
ACK ec5ee8233011269b2d0bbdf8a1647e27e61b9050
Tree-SHA512: 32fd2a8a57bcc1a6fb8569d779aca8a273c843d38afe6f092f0c70c7dad0ff7b37595284985ca4d3c5e253810b70857600043817fd9f928ee0c706108f8a9bcb
0 commit comments