Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Crash at fundrawtransaction

Open
#1,255 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp
Domain
blockchain

Research direction

Start at wallet/spend.cpp:1449 and trace the fundrawtransaction path around the reported assertion in CWallet::CreateTransactionInternal. Use the provided production log and multi-sig wallet context to reproduce the failure; done means fundrawtransaction no longer aborts under the reported conditions.

Written by the indexing model from the issue text.

Description

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.

Dominant language
C++
Stars
1.2k
Forks
418
Avg merge
1d 12h
Merged PRs (30d)
13

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ElementsProject/elements

All issues in ElementsProject/elements

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.