Bitcoin nodes accept a block only if every transaction in it is valid and spends outputs that are still unspent. Bitcoin Core rejects a transaction whose inputs are missing or already spent, which is how the UTXO model stops the same coins being spent twice.
Sources and checks
T2Bitcoin: A Peer-to-Peer Electronic Cash System (white paper)Paper, says this directly
Nodes accept the block only if all transactions in it are valid and not already spent.
Section 5, Network, step 5, read 2026-11-20
T1Bitcoin Core src/consensus/tx_verify.cpp, Consensus::CheckTxInputsSource code, says this directly
return state.Invalid(TxValidationResult::TX_MISSING_INPUTS, "bad-txns-inputs-missingorspent",
Consensus::CheckTxInputs, missing or spent inputs, read 2026-11-20
bitcoin/bitcoin at f498a5a671 contains this text in src/consensus/tx_verify.cpp, and still does on the default branch.
Run it yourself
git clone https://github.com/bitcoin/bitcoin && git -C bitcoin show f498a5a6718d9157b6afb85412c3462439117702:src/consensus/tx_verify.cpp | grep -nF 'bad-txns-inputs-missingorspent'Checked at block 976,842, 21 Nov 2026, 04:28 UTC: recheck, quotes 2/2, code 1/1
History
Nothing is edited silently; every revision keeps what it replaced.
- 20 Nov 2026, 16:42 UTCblock 976,753
Published Revision 1, run 2026-11-20-seed-utxo-model