Crash at fundrawtransaction
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
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
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 ElementsProject/elements
-
Difficulty 2/5 1-3 hours Newbie friendliness 58/100
ElementsProject/elements#1555 ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
ElementsProject/elements#1521 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 32/100
ElementsProject/elements#1516 · 5 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
ElementsProject/elements#1502 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 38/100
ElementsProject/elements#1500 · 2 comments ·
All issues in ElementsProject/elements
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
flutter-webrtc/flutter-webrtc#2206 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
google-ai-edge/LiteRT-LM#3739 ·
-
Component: GLib
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
brave/brave-browser#59300 ·
-
Mute ydb/tests/functional/dstool/test_canonical_requests.py.Test.test_group_take_snapshot in main Openai_reviewed
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
ydb-platform/ydb#53974 · 3 comments ·