Skip to content

Commit 0a20724

Browse files
committed
feat(examples): Update example crates to use expected_spk_txids
1 parent 1f8fc17 commit 0a20724

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

example-crates/example_electrum/src/main.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,11 @@ fn main() -> anyhow::Result<()> {
215215
eprintln!("[ SCANNING {:03.0}% ] {}", pc, item);
216216
});
217217

218+
request = request.expected_spk_txids(graph.list_expected_spk_txids(
219+
&*chain,
220+
chain_tip.block_id(),
221+
..,
222+
));
218223
if all_spks {
219224
request = request.spks_with_indexes(graph.index.revealed_spks(..));
220225
}

example-crates/example_esplora/src/main.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,11 @@ fn main() -> anyhow::Result<()> {
225225
{
226226
let graph = graph.lock().unwrap();
227227
let chain = chain.lock().unwrap();
228-
228+
request = request.expected_spk_txids(graph.list_expected_spk_txids(
229+
&*chain,
230+
local_tip.block_id(),
231+
..,
232+
));
229233
if *all_spks {
230234
request = request.spks_with_indexes(graph.index.revealed_spks(..));
231235
}

0 commit comments

Comments
 (0)