Todas as lições · Developer tooling · Começa aqui · Glossário
Reset devnets instead of skewing the chain clockPráticoDe uma correção
De uma correção · Verificação: em parte certa · Verificada em 2026-11-19
Pushing devnet timestamps ahead leaves the chain clock skewed for every later run, which stalls services that compare the tip with wall time. Reset the devnet for each scenario. At the start, assert that |tip timestamp − now| is small, for example under 600 s.
Porque importa: Without a reset and the precondition, a rerun on the same devnet starts with the chain clock hours or days ahead, so the runners idle and the scenario fails with timeouts instead of a clear message.
Padrão
start-up step that advances median time +1h and mines blocks on a long-lived devnet -> reset the devnet and add a precondition asserting chain-clock skew < 600 s- Conceitos
- Testing and devnet, Since and time locks
- Evidência
- De uma correção: de um projeto, verificada contra o commit
- Vista pela primeira vez
- 2026-11-15
- Última mudança
- 2026-11-15
- Última verificação
- 2026-11-19
- Verificação contra o commit
- em parte certa: um núcleo verdadeiro, com uma parte solta ou demasiado larga
Fontes (1)
- 2026-11-15 · psawyerberlin/ckb-revocable-timelock · mais deste projeto
Mais sobre Developer tooling
- Mirror on-chain rules off-chain with mutation tests
- Separate submit and commit verification environments
- ckb-vm-js 0.2.0 (npm) checks header hash instead of rejecting the field
Manténs um projeto de onde esta lição veio? Confirma ou corrige
Citar esta lição
LusoCryptoLabs, "Reset devnets instead of skewing the chain clock", CKB lessons, https://pulse.lusocryptolabs.com/learned/tooling/reset-devnets-instead-of-skewing-the-chain-clock, CC BY 4.0, last changed 2026-11-15.