CKB Pulse

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.

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)

Mais sobre Other

Ver as 9 deste tema

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.

Tiradas de commits públicos e verificadas contra o commit de onde cada uma veio e o código de hoje do projeto. Lê a fonte antes de confiar numa. Texto sob CC BY 4.0: dá crédito à LusoCryptoLabs, CKB lessons, com uma ligação para a lição. Queres que uma lição seja mudada ou retirada? Abre um issue.