Todas as lições · Other · Começa aqui · Glossário
Absolute epoch since needs the 0x20 metric flagPráticoDe uma correção
De uma correção · Verificação: certa · Verificada em 2026-11-19
An input's since meant as an absolute epoch must have bit 61 set (0x2000000000000000) with bit 63 (relative) and bit 62 clear (RFC 0017). With all three top bits zero the node reads the same number as an absolute block number. The epoch number is in the low 24 bits (raw & 0xffffff), with index and length above it, so check the epoch number inclusively against the required epoch before signing.
Porque importa: Without the 0x20 metric flag the node reads the since value as an absolute block number, so the lock means something entirely different and the contract's epoch check rejects the transaction.
since flag bits, not covered
Um teste mudou no mesmo commit
Está ao lado da correcção. Nós não o corremos.
- toastmanAu/daowow:
apps/web/test/lifecycle-rules.test.js
- Conceitos
- Since and time locks
- Evidência
- De uma correção: de um projeto, verificada contra o commit
- Vista pela primeira vez
- 2026-09-25
- Última mudança
- 2026-09-25
- Ú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-09-25 · toastmanAu/daowow · mais deste projeto
Mais sobre Other
- Nervos DAO phase-one withdrawal layout
- Nervos DAO phase-two withdrawal since and amount
- Recognizing a Nervos DAO deposit cell (not a withdrawing one)
Manténs um projeto de onde esta lição veio? Confirma ou corrige
Citar esta lição
LusoCryptoLabs, "Absolute epoch since needs the 0x20 metric flag", CKB lessons, https://pulse.lusocryptolabs.com/learned/other/absolute-epoch-since-needs-the-0x20-metric-flag, CC BY 4.0, last changed 2026-09-25.