]> Untitled Git - bdk/commit
feat: use `Amount` on `calculate_fee`, `fee_absolute`, `fee_amount` and others
authorLeonardo Lima <oleonardolima@users.noreply.github.com>
Sun, 5 May 2024 20:41:31 +0000 (17:41 -0300)
committerLeonardo Lima <oleonardolima@users.noreply.github.com>
Mon, 3 Jun 2024 16:19:16 +0000 (13:19 -0300)
commita03949adb0c38ba4c2f44b497871070c1a2170d2
tree97f451e2f15a671bef19dfc6dcfc1db2a47521dc
parent4a8452f9b8f8128affbb60665016fedb48f07cd6
feat: use `Amount` on `calculate_fee`, `fee_absolute`, `fee_amount` and others

- update to use `bitcoin::Amount` on `CreateTxError::FeeTooLow` variant.
- update to use `bitcoin::Amount` on `Wallet::calculate_fee()`.
- update to use `bitcoin::Amount` on `FeePolicy::fee_absolute()`.
- update to use `bitcoin::SignedAmount` on
  `CalculateFeeError::NegativeFee` variant.
- update to use `bitcoin::Amount` on `TxGraph::calculate_fee()`.
- update to use `bitcoin::Amount` on `PsbUtils::fee_amount()`
crates/chain/src/tx_graph.rs
crates/chain/tests/test_tx_graph.rs
crates/electrum/tests/test_electrum.rs
crates/esplora/tests/async_ext.rs
crates/esplora/tests/blocking_ext.rs
crates/wallet/src/psbt/mod.rs
crates/wallet/src/wallet/error.rs
crates/wallet/src/wallet/mod.rs
crates/wallet/src/wallet/tx_builder.rs
crates/wallet/tests/wallet.rs