Skip to content

Commit

Permalink
fix: rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
realeinherjar committed Sep 20, 2023
1 parent 0884213 commit 1139065
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions crates/bdk/src/wallet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ use bdk_chain::{
Append, BlockId, ChainPosition, ConfirmationTime, ConfirmationTimeAnchor, FullTxOut,
IndexedTxGraph, Persist, PersistBackend,
};
use bitcoin::consensus::encode::serialize;
use bitcoin::psbt;
use bitcoin::secp256k1::Secp256k1;
use bitcoin::sighash::{EcdsaSighashType, TapSighashType};
use bitcoin::{
absolute, Address, Network, OutPoint, Script, ScriptBuf, Sequence, Transaction, TxOut, Txid,
Weight, Witness,
};
use bitcoin::consensus::encode::serialize;
use core::fmt;
use core::ops::Deref;
use miniscript::psbt::{PsbtExt, PsbtInputExt, PsbtInputSatisfier};
Expand Down Expand Up @@ -1288,7 +1288,8 @@ impl<D> Wallet<D> {
let satisfaction_weight = self
.get_descriptor_for_keychain(keychain)
.max_weight_to_satisfy()
.unwrap() + 4;
.unwrap()
+ 4;
WeightedUtxo {
utxo: Utxo::Local(LocalUtxo {
outpoint: txin.previous_output,
Expand All @@ -1298,7 +1299,7 @@ impl<D> Wallet<D> {
derivation_index,
confirmation_time,
}),
satisfaction_weight
satisfaction_weight,
}
}
None => {
Expand Down Expand Up @@ -1621,7 +1622,8 @@ impl<D> Wallet<D> {
utxo,
self.get_descriptor_for_keychain(keychain)
.max_weight_to_satisfy()
.unwrap() + 4,
.unwrap()
+ 4,
)
})
.collect()
Expand Down

0 comments on commit 1139065

Please sign in to comment.