Skip to content

fix: Simplify esplora cli example#6

Closed
LLFourn wants to merge 5 commits intoevanlinjin:esplora_examplefrom
LLFourn:esplora_example
Closed

fix: Simplify esplora cli example#6
LLFourn wants to merge 5 commits intoevanlinjin:esplora_examplefrom
LLFourn:esplora_example

Conversation

@LLFourn
Copy link
Copy Markdown

@LLFourn LLFourn commented Aug 25, 2023

LLFourn addressing his comments on bitcoindevkit#1040

danielabrozzoni and others added 5 commits August 24, 2023 17:22
..infinite iterator for non-wildcard descriptors

We would previously use `new_with_range`, which didn't check if
the descriptor had a wildcard or not. This meant that for non-wildcard
descriptors we created a spkiterator that would go on producing
the same spk over and over again; this caused some scanning issues
with electrum and esplora.

To reproduce the bug, run in `example-crates/example_electrum`:
```
cargo run "sh(wsh(or_d(c:pk_k(cPGudvRLDSgeV4hH9NUofLvYxYBSRjju3cpiXmBg9K8G9k1ikCMp),c:pk_k(cSBSBHRrzqSXFmrBhLkZMzQB9q4P9MnAq92v8d9a5UveBc9sLX32))))#zp9pcfs9" scan
```
Co-authored-by: remix <remix7531@pm.me>
- Fix nomenclature after rebase
- Flush stderr, not stdout
- Always flush after printing in map/inspect
- Fetch all the block anchors, not only the missing heights
LLFourn addressing his comments on bitcoindevkit#1040
@danielabrozzoni danielabrozzoni force-pushed the esplora_example branch 4 times, most recently from 3c1e5d4 to f41cc1c Compare August 31, 2023 11:07
@LLFourn LLFourn closed this Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants