electrs logs report "less efficient method of querying" electrs server
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 1.4k
- Forks
- 561
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 6
Description
We have an issue: https://github.com/BlueWallet/BlueWallet/issues/4336
Probably electrs wants us to always connect, keep connection alive and subscribe to all scripthashes we are interested in.
In BW we dont subscribe, as user sessions might be very short, so we try our best to quickly connect, query about scripthashes, and then dont care if user terminates the app or connection closes (which happens when user suspends the app on iOS. OS simply closes all sockets of suspended apps)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the linked BlueWallet issue and the electrs handling of short-lived client connections and scripthash queries. Determine why these requests produce the “less efficient method of querying” log, then verify that the warning is resolved without requiring clients to maintain subscriptions after their queries complete.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- backend, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100