]> Untitled Git - bdk/commit
feat(wallet): add Wallet::insert_txout function and updated docs for fee functions
authorSteve Myers <steve@notmandatory.org>
Mon, 7 Aug 2023 04:05:41 +0000 (23:05 -0500)
committerSteve Myers <steve@notmandatory.org>
Wed, 30 Aug 2023 16:55:18 +0000 (11:55 -0500)
commit036299803f9f94c7c8218a75f3c206fa8c4297ab
tree4d42f383cc171e094d3d0cbb5092fb35976cdf0c
parentd443fe7f6613776a3dce00def0b655c4b2b36728
feat(wallet): add Wallet::insert_txout function and updated docs for fee functions

added
    - Wallet::insert_txout function to allow inserting foreign TxOuts
    - test to verify error when trying to calculate fee with missing foreign utxo
    - test to calculate fee with inserted foreign utxo

updated
    - docs for Wallet::calculate_fee, Wallet::calculate_fee_rate, and TxGraph::calculate_fee
      with note about missing foreign utxos
crates/bdk/src/wallet/mod.rs
crates/bdk/tests/common.rs
crates/bdk/tests/wallet.rs
crates/chain/src/spk_txout_index.rs
crates/chain/src/tx_graph.rs