Todas as lições · Rust scripts and ckb-std · Começa aqui · Glossário
Cheque lock sender withdrawal requires exact since 0xA000000000000006PráticoDe uma correção
De uma correção · Verificação: certa · Verificada em 2026-11-19
The deployed Cheque lock (RFC 0039) accepts a sender withdrawal only when the Cheque input's since is exactly 0xA000000000000006 (relative epoch, 6 epochs after the cell was committed). A since of 0 fails with Cheque error 11 (WithdrawChequeInputSinceError), so the sender cannot reclaim for about 24h after each create or renew.
Porque importa: A sender withdrawal built with since 0 (or any other value) is rejected by the Cheque lock with error 11, and the sender cannot reclaim the cell until 6 epochs after it was committed.
Padrão
const CHEQUE_SENDER_SINCE: u64 = 0xA000_0000_0000_0006;Tirado do commit, encurtado.
Um teste mudou no mesmo commit
Está ao lado da correcção. Nós não o corremos.
- salmansarwarr/Tranfr:
tests/src/composition.rs
- Conceitos
- Since and time locks, Testing and devnet
- Evidência
- De uma correção: de um projeto, verificada contra o commit
- 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 · salmansarwarr/Tranfr · mais deste projeto
Mais sobre Rust scripts and ckb-std
- Median time vs tip timestamp for deadlines
- ckb-std C shim needs a RISC-V C toolchain (clang) in CI
- Comparing packed epoch values
Manténs um projeto de onde esta lição veio? Confirma ou corrige
Citar esta lição
LusoCryptoLabs, "Cheque lock sender withdrawal requires exact since 0xA000000000000006", CKB lessons, https://pulse.lusocryptolabs.com/learned/scripts/cheque-lock-sender-withdrawal-requires-exact-since-0xa000000, CC BY 4.0, last changed 2026-11-09.