Todas as lições · CKB node, RPC and indexer · Começa aqui · Glossário
Gating the Terminal RPC module on CKB version including prereleasesPráticoDe uma correção
De uma correção · Verificação: certa · Verificada em 2026-11-21
The Terminal RPC module first shipped in CKB 0.205.0, and older binaries refuse to start when rpc.modules in ckb.toml lists it (serde unknown variant), so a tool should only enable it for binaries at or above that version. When gating, 0.205.0 release candidates already carry the module but semver.gte('0.205.0-rc1', '0.205.0') is false. Use semver.satisfies(v, '>=0.205.0-0', { includePrerelease: true }) so that 0.205.0 rc builds and prereleases of newer versions pass while 0.204.x still fails.
Porque importa: Without prerelease-aware gating, offckb strips the Terminal module from the devnet config for 0.205.0 rc builds that support it, and the system-metric panels of offckb status (ckb-tui) lose functionality.
Version gating that must accept prerelease CKB builds; not covered by existing lessons.
Padrão
return semver.satisfies(ckbVersion, `>=${TERMINAL_RPC_MIN_CKB_VERSION}-0`, { includePrerelease: true });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/ckb-tui-install.test.ts,tests/init-chain.test.ts,tests/logs-command.test.ts,tests/logs.test.ts,tests/proxy-events.test.ts
- Conceitos
- Network and RPC reliability, Testing and devnet
- Evidência
- De uma correção: de um projeto, verificada contra o commit
- Vista pela primeira vez
- 2026-08-03
- Última mudança
- 2026-08-03
- Última verificação
- 2026-11-21
- Verificação contra o commit
- certa: a lição sai do commit e continua a valer no código de hoje
Fontes (1)
- 2026-08-03 · ckb-devrel/offckb · mais deste projeto
Mais sobre CKB node, RPC and indexer
- get_transaction returns an object with a null transaction for rejected and unknown txs
- CKB log subscription notifications may carry params.result as a JSON string
- Simulating a real CKB reorg with two devnet nodes over P2P
Manténs um projeto de onde esta lição veio? Confirma ou corrige
Citar esta lição
LusoCryptoLabs, "Gating the Terminal RPC module on CKB version including prereleases", CKB lessons, https://pulse.lusocryptolabs.com/learned/node/gating-the-terminal-rpc-module-on-ckb-version-including-prer, CC BY 4.0, last changed 2026-08-03.