Todas as lições · Apps and UI · Começa aqui · Glossário
Lock-based fallback when a stored out point goes stalePráticoDe uma correção
De uma correção · Verificação: certa · Verificada em 2026-11-19
A saved out point stops being valid once the cell is consumed and recreated. Use the recorded out point if it is still live; otherwise find the unique live cell matching the exact lock (code_hash, hash_type, args). In both cases, still check the cell's contents against the recorded values.
Porque importa: After the cell is consumed and recreated (here by Arm), a lookup that filters only by the recorded out point finds nothing, so verification of a valid switch fails.
Padrão
filtering live cells only by the recorded out_point → no match after the cell was replaced; prefer recorded match if present else unique cell matching lock scriptUm teste mudou no mesmo commit
Está ao lado da correcção. Nós não o corremos.
- psawyerberlin/ckb-revocable-timelock:
client/test/chain.test.ts
- Conceitos
- Indexer queries and cell collection
- Evidência
- De uma correção: de um projeto, verificada contra o commit
- Vista pela primeira vez
- 2026-11-15
- Última mudança
- 2026-11-15
- Ú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 (1)
- 2026-11-15 · psawyerberlin/ckb-revocable-timelock · mais deste projeto
Mais sobre Apps and UI
- Resolving cell deps per cell after redeploying a data-hashed script
- Exact CKB-to-shannon conversion with BigInt
- Nervos DAO hold time with term-locked withdrawals
Manténs um projeto de onde esta lição veio? Confirma ou corrige
Citar esta lição
LusoCryptoLabs, "Lock-based fallback when a stored out point goes stale", CKB lessons, https://pulse.lusocryptolabs.com/learned/apps/lock-based-fallback-when-a-stored-out-point-goes-stale, CC BY 4.0, last changed 2026-11-15.