Todas as lições · CKB node, RPC and indexer · Começa aqui · Glossário
get_live_cell may return "unknown" rather than "dead" for a spent outputPráticoVista outra vez
Vista outra vez · Verificação: certa · Verificada em 2026-11-19
On CKB node 0.210.0 devnet, get_live_cell for an output already consumed by a committed transaction returned status "unknown" instead of "dead", so a check requiring "dead" fails. Accept "dead" or "unknown" and prove consumption by calling get_transaction on the creating and consuming transactions, confirming both are committed and that the consumer's inputs reference the out point exactly once.
Porque importa: A check that demands "dead" fails on a cell that was correctly spent, and accepting "unknown" alone would also pass for an out point that never existed, so consumption has to be proven from the committed transactions.
Padrão
if old["status"] != "dead" {Tirado do commit, encurtado.
Um teste mudou no mesmo commit
Está ao lado da correcção. Nós não o corremos.
- tydeptrai21042004/ckb-skill:
tests/recovery-manifest.test.mjs,tests/spend-proof.test.mjs,tests/testnet-workflow-config.test.mjs
- Conceitos
- Indexer queries and cell collection, Network and RPC reliability
- Evidência
- Vista outra vez: vista em dois ou mais projetos
- Vista pela primeira vez
- 2026-10-10
- Última mudança
- 2026-10-30
- Última verificação
- 2026-11-19
- Verificação contra o commit
- certa: a lição sai do commit e continua a valer no código de hoje
Fontes (3)
- 2026-10-10 · Tactus-Labs/tactus-o1 · mais deste projeto
- 2026-10-30 · Ticoworld/QuotaCell · mais deste projeto
- 2026-10-24 · tydeptrai21042004/ckb-skill · mais deste projeto
Mais sobre CKB node, RPC and indexer
- Wait for get_indexer_tip to reach the commit block before re-reading cells
- Check indexer lag with get_indexer_tip before signing
- Computing cell confirmations from get_transaction block_hash and tip header
Manténs um projeto de onde esta lição veio? Confirma ou corrige
Citar esta lição
LusoCryptoLabs, "get_live_cell may return "unknown" rather than "dead" for a spent output", CKB lessons, https://pulse.lusocryptolabs.com/learned/node/get-live-cell-may-return-unknown-rather-than-dead-for-a-spen, CC BY 4.0, last changed 2026-10-30.