CKB Pulse

All lessons · Light client · Start here · Glossary

Light client scan absence does not prove a DAO withdrawing cell was spentWorkingFrom one fix

From one fix · Check: right · Checked 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.

Why it matters: 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.

Pattern

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

Taken from the commit, shortened.

A test changed in the same commit

It sits next to the fix. We did not run it.

Concepts
Indexer queries and cell collection, Other
Evidence
From one fix: from one project, checked against its commit
First seen
2026-09-30
Last changed
2026-10-09
Last checked
2026-11-19
Check against the commit
right: the lesson follows from its commit and still holds in the code today

Sources (2)

More about Light client

All 5 in this topic

Do you maintain a project this lesson came from? Confirm or correct it

Cite this lesson
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.

Drawn from public commits and checked against the commit each one came from and the project's code today. Read the source before you rely on one. Text under CC BY 4.0: credit LusoCryptoLabs, CKB lessons, with a link to the lesson. Want a lesson changed or removed? Open an issue.