Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #90: Don't return 1.0 feerate if none is found by `convert_fee_…
…rate` ec5ee82 test: improve test `feerate_parsing` (valued mammal) ed219e2 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 ec5ee82 Tree-SHA512: 32fd2a8a57bcc1a6fb8569d779aca8a273c843d38afe6f092f0c70c7dad0ff7b37595284985ca4d3c5e253810b70857600043817fd9f928ee0c706108f8a9bcb
- Loading branch information