feat(electrum): include option for previous TxOuts for fee calculation

The previous `TxOut` for transactions received from an external
wallet may be optionally added as floating `TxOut`s to `TxGraph`
to allow for fee calculation.
This commit is contained in:
Wei Chen
2024-05-07 19:57:11 +08:00
committed by 志宇
parent c0d7d60a58
commit b2f3cacce6
4 changed files with 91 additions and 19 deletions

View File

@@ -53,7 +53,7 @@ fn main() -> Result<(), anyhow::Error> {
.inspect_spks_for_all_keychains(|_, _, _| std::io::stdout().flush().expect("must flush"));
let mut update = client
.full_scan(request, STOP_GAP, BATCH_SIZE)?
.full_scan(request, STOP_GAP, BATCH_SIZE, false)?
.with_confirmation_time_height_anchor(&client)?;
let now = std::time::UNIX_EPOCH.elapsed().unwrap().as_secs();