Skip to content

Commit 6c4ab5c

Browse files
committed
1 parent 93293c9 commit 6c4ab5c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/bdk/src/wallet/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1506,7 +1506,7 @@ impl<D> Wallet<D> {
15061506
});
15071507
let current_height = sign_options
15081508
.assume_height
1509-
.or(self.chain.tip().map(|b| b.height()));
1509+
.or_else(|| self.chain.tip().map(|b| b.height()));
15101510

15111511
debug!(
15121512
"Input #{} - {}, using `confirmation_height` = {:?}, `current_height` = {:?}",

crates/bitcoind_rpc/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ impl<'c, C: bitcoincore_rpc::RpcApi> Emitter<'c, C> {
9090
.last_mempool_tip
9191
// We use `start_height - 1` as we cannot guarantee that the block at
9292
// `start_height` has been emitted.
93-
.unwrap_or(self.start_height.saturating_sub(1));
93+
.unwrap_or_else(|| self.start_height.saturating_sub(1));
9494

9595
// Mempool txs come with a timestamp of when the tx is introduced to the mempool. We keep
9696
// track of the latest mempool tx's timestamp to determine whether we have seen a tx

0 commit comments

Comments
 (0)