Skip to content

Commit d5c60b1

Browse files
committed
Avoid redundant wallet transaction details
Skip computing wallet amounts and fees when rebroadcasting pending transactions because only the transaction itself is needed. Co-Authored-By: HAL 9000
1 parent d70c097 commit d5c60b1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/wallet/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,9 @@ impl Wallet {
331331
unconfirmed_outbound_txids
332332
.iter()
333333
.filter_map(|txid| {
334-
locked_wallet.tx_details(*txid).map(|d| (*d.tx).clone())
334+
locked_wallet
335+
.get_tx(*txid)
336+
.map(|tx| tx.tx_node.tx.as_ref().clone())
335337
})
336338
.collect()
337339
};

0 commit comments

Comments
 (0)