Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Crash at fundrawtransaction

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

还没有人认领这个 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 内容生成。

描述

needs reproduction
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

贡献指南

打开贡献指南

从这里开始

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

ElementsProject/elements 的其他 Issue

查看 ElementsProject/elements 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

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