Crash at fundrawtransaction
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- cpp
- 领域
- blockchain
调研方向
从 wallet/spend.cpp:1449 开始,跟踪 CWallet::CreateTransactionInternal 中所报告 assertion 附近的 fundrawtransaction 路径。使用提供的 production log 和 multi-sig wallet 上下文来复现该故障;完成的标准是 fundrawtransaction 在所报告的条件下不再 abort。
由索引模型根据 Issue 内容生成。
描述
2023-08-08T07:23:35Z UpdateTip: new best=78b7897fac1fbe95d92f5724b1cd506fc6d1bb03710f17b36754d13f578a9555 height=2460677 version=0x20000000 tx=3918616 date='2023-08-08T07:23:08Z' progress=1.000000 cache=0.2MiB(699txo)
elementsd: wallet/spend.cpp:1449: bool CWallet::CreateTransactionInternal(const std::vector<CRecipient>&, CTransactionRef&, CAmount&, int&, bilingual_str&, const CCoinControl&, FeeCalculation&, bool, BlindDetails*, const IssuanceDetails*): Assertion `coin_selection_params.m_subtract_fee_outputs || fee_needed <= map_change_and_fee.at(policyAsset) - change_amount' failed.
This occured in the production blockchain, with a multi-sig (2-of-3) wallet.
Reproduction rate was quite high, but finally the transaction was created.
Version: 22.1.1
Platform: Linux (Ubuntu 22 LTS) in docker
More details (except the wallet) are available on request, if needed.
- 主要语言
- C++
- 星标
- 1.2k
- 派生
- 418
- 平均合并
- 1 天 12 小时
- 30 天内合并 PR
- 13
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ElementsProject/elements 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 58/100
ElementsProject/elements#1555 ·
-
难度 5/5 一周以上 新手友好度 30/100
ElementsProject/elements#1521 ·
-
难度 4/5 3-5 天 新手友好度 32/100
ElementsProject/elements#1516 · 5 条评论 ·
-
难度 4/5 3-5 天 新手友好度 25/100
ElementsProject/elements#1502 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 38/100
ElementsProject/elements#1500 · 2 条评论 ·
查看 ElementsProject/elements 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
-
good first issue
难度 2/5 1-3 小时 新手友好度 75/100
ros2/message_filters#338 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
subsurface/subsurface#4984 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
flutter-webrtc/flutter-webrtc#2206 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
google-ai-edge/LiteRT-LM#3739 ·