CKB Pulse

Todas as lições · Light client · Começa aqui · Glossário

Light client scan absence does not prove a DAO withdrawing cell was spentPráticoDe uma correção

De uma correção · Verificação: certa · Verificada em 2026-11-19

With the CKB light client, a DAO withdrawing cell older than the script's sync start is never returned by the scan, and the phase-2 unlock output is a plain cell that does not point back at it. So absence from the scan cannot mark the position spent: retire it only when the unlock transaction is confirmed (a verified local inclusion, or getTransactionStatus reporting committed on the node), keep it shown as confirming while the unlock is in flight, and never treat an unreachable node or an unknown transaction as a spend.

Porque importa: Retiring on absence alone makes a still-unspent DAO position vanish from the screen and the balance, and the unlock preflight then insists it was already claimed, with no way back.

Padrão

Preferir
chainVerdict == DaoUnlockChainVerdict.COMMITTED -> DaoUnlockMarkerState.CONFIRMED

Tirado do commit, encurtado.

Um teste mudou no mesmo commit

Está ao lado da correcção. Nós não o corremos.

Conceitos
Indexer queries and cell collection, Other
Evidência
De uma correção: de um projeto, verificada contra o commit
Vista pela primeira vez
2026-09-30
Última mudança
2026-10-09
Ú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 (2)

Mais sobre Light client

Ver as 5 deste tema

Manténs um projeto de onde esta lição veio? Confirma ou corrige

Citar esta lição
LusoCryptoLabs, "Light client scan absence does not prove a DAO withdrawing cell was spent", CKB lessons, https://pulse.lusocryptolabs.com/learned/light-client/light-client-scan-absence-does-not-prove-a-dao-withdrawing-c, CC BY 4.0, last changed 2026-10-09.

Tiradas de commits públicos e verificadas contra o commit de onde cada uma veio e o código de hoje do projeto. Lê a fonte antes de confiar numa. Texto sob CC BY 4.0: dá crédito à LusoCryptoLabs, CKB lessons, com uma ligação para a lição. Queres que uma lição seja mudada ou retirada? Abre um issue.