]> Untitled Git - bdk/commit
Move estimate -> fee rate logic to esplora module
authorTobin Harding <me@tobin.cc>
Wed, 28 Jul 2021 23:58:47 +0000 (09:58 +1000)
committerTobin Harding <me@tobin.cc>
Thu, 29 Jul 2021 00:12:19 +0000 (10:12 +1000)
commit5cdc5fb58a4635ce6a302093c78b511255bbc1a3
tree98308b3f40a2cc60ebbb62751537efb550ca1da7
parent27cd9bbcd6f1601378052b432306b6d78521aa3d
Move estimate -> fee rate logic to esplora module

Currently we have duplicate code for converting the fee estimate we get
back from esplora into a fee rate. This logic can be moved to a separate
function and live in the `esplora` module.
src/blockchain/esplora/mod.rs
src/blockchain/esplora/reqwest.rs
src/blockchain/esplora/ureq.rs