Todas as lições · Developer tooling · Começa aqui · Glossário
CKB node script debug logs may use ckb_script::verify target, not only ckb-scriptPráticoDe uma correção
De uma correção · Verificação: certa · Verificada em 2026-11-19
When filtering a CKB node's run.log or log subscription for contract debug output (ckb_debug / debug! syscalls), records can come with target `ckb_script` or a `ckb_script::` submodule such as `ckb_script::verify` rather than the legacy `ckb-script` target. For those targets, match only messages containing `DEBUG OUTPUT:`, because the same target also emits ordinary verification lines.
Porque importa: A log filter that matches only the `ckb-script` target silently drops contract debug output that the node emits under `ckb_script::verify`, so developers see no script logs at all; matching the module target without the `DEBUG OUTPUT:` marker would flood them with ordinary verification lines instead.
Padrão
const isCkbScriptTarget = entry.target === 'ckb_script' || entry.target.startsWith('ckb_script::'); return isCkbScriptTarget && entry.message.includes('DEBUG OUTPUT:');Tirado do commit, encurtado.
Um teste mudou no mesmo commit
Está ao lado da correcção. Nós não o corremos.
- ckb-devrel/offckb:
tests/logs-command.test.ts,tests/logs.test.ts,tests/node-quiet-mode.test.ts
- Conceitos
- Testing and devnet
- Evidência
- De uma correção: de um projeto, verificada contra o commit
- Vista pela primeira vez
- 2026-10-08
- Última mudança
- 2026-10-08
- Ú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-10-08 · ckb-devrel/offckb · mais deste projeto
Mais sobre Developer tooling
- ckb-vm-js 0.2.0 (npm) checks header hash instead of rejecting the field
- Derive devnet Spore and system script cell deps from a fresh OffCKB export
- Pass wasm bytes to ckb-vm-js createVerifier in Node
Manténs um projeto de onde esta lição veio? Confirma ou corrige
Citar esta lição
LusoCryptoLabs, "CKB node script debug logs may use ckb_script::verify target, not only ckb-script", CKB lessons, https://pulse.lusocryptolabs.com/learned/tooling/ckb-node-script-debug-logs-may-use-ckb-script-verify-target, CC BY 4.0, last changed 2026-10-08.