All lessons · Developer tooling · Start here · Glossary
Saved transaction test vectors go stale when their cell deps are spentWorkingChecked by the owner
Checked by the owner · Check: right · Checked 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.
Why it matters: 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.
A test changed in the same commit
It sits next to the fix. We did not run it.
- LusoCryptoLabs/ckb-ward:
tests/vectors.test.ts
- Concepts
- Testing and devnet, Cell deps and script lookup
- Evidence
- Checked by the owner: checked by the owner of the project it came from, who is also the publisher of these lessons
- First seen
- 2026-11-09
- Last changed
- 2026-11-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 (1)
- 2026-11-09 · LusoCryptoLabs/ckb-ward · more from this project
More about 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
Checked by @LusoCryptoLabs (owner of the project), 2026-11-19.
Do you maintain a project this lesson came from? Confirm or correct it
Cite this lesson
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.