CKB Pulse

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.

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)

More about Developer tooling

All 35 in this topic

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.

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.