Balance is not updated after receive
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- rust
- Domain
- backend-api-design, payments
Research direction
Start by tracing the stream_incoming handling and the subsequent list_peers balance calculation. Reproduce a paid invoice and compare the first and second list_peers responses to identify why the spendable amount is delayed. Done means the balance reflects the received payment without requiring caller-side polling.
Written by the indexing model from the issue text.
Description
In order to calculate the balance we are summing the spendable amount of all opened channels that return from the list_peers gRPC endpoint.
When we get the a paid invoice via the stream_incoming API we immediately call list_peers and the channels spendable amount is not changed.
This requires us to poll for that and usually in the second attempt the balance is updated.
- Dominant language
- Rust
- Stars
- 148
- Forks
- 49
- Avg merge
- 4d 5h
- Merged PRs (30d)
- 9
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from Blockstream/greenlight
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Blockstream/greenlight#752 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
Blockstream/greenlight#751 ·
Maintainers usually reply within 1 day
-
Signet: node connection returns TLS alert 225 (SchedulerError) after `scheduler schedule` succeedsOpen
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Blockstream/greenlight#750 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Blockstream/greenlight#595 ·
Maintainers usually reply within 1 day
-
Add Bookkeeper SupportMay be free again @cdecker claimed this 664 days ago, and no pull request is open. Opencomponent::plugin enhancement
Blockstream/greenlight#566 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
All issues in Blockstream/greenlight
Similar issues
-
Ignore entry for RUSTSEC-2026-0002 no longer matches anything (`lru` is no longer in `Cargo.lock`)Open
Difficulty 1/5 Under an hour Newbie friendliness 72/100
influxdata/influxdb#27767 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
shell-pool/shpool#463 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
oras-project/rust-oci-client-node#132 ·
Maintainers usually reply within 2 days
-
Ignore entry for RUSTSEC-2020-0168 no longer matches anything (`mach` is no longer in `Cargo.lock`)Possibly taken @zyl71 claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 72/100
Blockstream/lwk#213 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
libracoder/kiri#749 ·
Maintainers usually reply within 1 day