Balance is not updated after receive

未关闭
#243 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
rust

调研方向

首先跟踪 stream_incoming 的处理流程以及随后在 list_peers 中进行的余额计算。重现一张已支付的发票,并比较第一次和第二次 list_peers 响应,以确定可支配金额为何会延迟。完成标准是:余额能够反映已收到的付款,而无需调用方进行轮询。

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
Rust
星标
148
派生
49
平均合并
4 天 5 小时
30 天内合并 PR
9

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Blockstream/greenlight 的其他 Issue

查看 Blockstream/greenlight 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。