Todas as lições · Developer tooling · Começa aqui · Glossário
Saved transaction test vectors go stale when their cell deps are spentPráticoVerificada pelo dono
Verificada pelo dono · Verificação: certa · Verificada em 2026-11-19
A saved CKB transaction lists its cell deps by out point. A replay that resolves those deps as live cells, as a node does when it verifies a new transaction, stops working once a lock upgrade or redeployment spends a dep cell, although neither the saved transaction nor the verifier changed. A replay test should tell that case (a dep that is no longer live) apart from a real verification failure, and skip the vector with a note instead of reporting a defect.
Porque importa: Without the check, every test on a vector whose dep cell was spent by an upgrade or redeployment fails, and that failure looks like a verifier bug even though the verifier is correctly refusing dead deps.
Um teste mudou no mesmo commit
Está ao lado da correcção. Nós não o corremos.
- LusoCryptoLabs/ckb-ward:
tests/vectors.test.ts
- Conceitos
- Testing and devnet, Cell deps and script lookup
- Evidência
- Verificada pelo dono: verificada pelo dono do projeto de onde veio, que também publica estas lições
- Vista pela primeira vez
- 2026-11-09
- Última mudança
- 2026-11-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 (1)
- 2026-11-09 · LusoCryptoLabs/ckb-ward · mais deste projeto
Mais sobre Developer tooling
- Derive devnet Spore and system script cell deps from a fresh OffCKB export
- Mock transactions must expand dep_group members
- ckb-vm-js 0.2.0 (npm) checks header hash instead of rejecting the field
Verificada por @LusoCryptoLabs (dono do projeto), 2026-11-19.
Manténs um projeto de onde esta lição veio? Confirma ou corrige
Citar esta lição
LusoCryptoLabs, "Saved transaction test vectors go stale when their cell deps are spent", CKB lessons, https://pulse.lusocryptolabs.com/learned/tooling/saved-transaction-test-vectors-go-stale-when-their-cell-deps, CC BY 4.0, last changed 2026-11-09.