lbryio / lbryio/lbrycrd

TX_MISSING_INPUTS is ambiguous

Open
#357 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
2.5k
Forks
173
PR merge metrics
No merged PRs in 30d

Description

The TX_MISSING_INPUTS error makes it sound like the person creating the TX forgot to include inputs in that TX. However, the error is actually issued when the TX's inputs don't have corresponding TXOs in the history of the chain or if the TXOs have already been spent. We should clarify the message and consider breaking it into spent vs missing.

Contributor guide

Open the contributing guide

Research direction

Start by locating the TX_MISSING_INPUTS definition and the transaction-validation path that emits it. Review how missing and already-spent TXOs are distinguished, then clarify the error wording and determine whether separate errors are warranted; done means the reported cause no longer implies that inputs were omitted from the transaction.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.